Visual Basic (Declaration) | |
---|---|
<DescriptionAttribute("Whether to log the generated SQL from Entity Framework queries")> <XmlAttributeAttribute("logTraceString")> <DefaultValueAttribute()> Public Property LogTraceString As Boolean |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As EdmKeyElement Dim value As Boolean instance.LogTraceString = value value = instance.LogTraceString |
C# | |
---|---|
[DescriptionAttribute("Whether to log the generated SQL from Entity Framework queries")] [XmlAttributeAttribute("logTraceString")] [DefaultValueAttribute()] public bool LogTraceString {get; set;} |
C++/CLI | |
---|---|
[DescriptionAttribute("Whether to log the generated SQL from Entity Framework queries")] [XmlAttributeAttribute("logTraceString")] [DefaultValueAttribute()] public: property bool LogTraceString { bool get(); void set ( bool value); } |
There may be performance penalties when tracing is turned on, so be sure to turn this option off when not needed. Also see the LoggingElement.ShouldLogSqlQueries.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family