IdeaBlade DevForce 2010 Help Reference
LogTraceString Property
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core.Configuration Namespace > EdmKeyElement Class : LogTraceString 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("logTraceString")>
<DefaultValueAttribute()>
Public Property LogTraceString As Boolean
Visual Basic (Usage)Copy Code
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);
}

Remarks

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.

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.