| Visual Basic (Declaration) | |
|---|---|
<DescriptionAttribute("Whether to log the generated SQL from Entity Framework queries")> <XmlAttributeAttribute("shouldLogSqlQueries")> <DefaultValueAttribute()> Public Property ShouldLogSqlQueries As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As LoggingElement Dim value As Boolean instance.ShouldLogSqlQueries = value value = instance.ShouldLogSqlQueries | |
| C# | |
|---|---|
[DescriptionAttribute("Whether to log the generated SQL from Entity Framework queries")] [XmlAttributeAttribute("shouldLogSqlQueries")] [DefaultValueAttribute()] public bool ShouldLogSqlQueries {get; set;} | |
| C++/CLI | |
|---|---|
[DescriptionAttribute("Whether to log the generated SQL from Entity Framework queries")] [XmlAttributeAttribute("shouldLogSqlQueries")] [DefaultValueAttribute()] public: property bool ShouldLogSqlQueries { 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.
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