IdeaBlade DevForce 2010 Help Reference
ShouldLogSqlQueries Property
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.Configuration Namespace > LoggingElement Class : ShouldLogSqlQueries Property



Gets or sets whether to log the SQL from Entity Framework queries to the log file.

Syntax

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);
}

Remarks

There may be performance penalties when tracing is turned on, so be sure to turn this option off when not needed.

Requirements

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

See Also

© 2013 All Rights Reserved.