[This is preliminary documentation and is subject to change.]
Pass a type and resource path rooted at type's namespace, for example
given
string sql = typeof(SomeType).GetText("SQL.User.Insert.sql");
string sql = typeof(SomeType).GetText("SQL.User.Insert.sql");
If "SomeType" is declared in "TestApp.Types", then statement's resource will have to be embedded under resource named:
"TestApp.Types.SQL.User.Insert.sql"
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static string GetText(
this Type scopingType,
string scriptName
)
public static string GetText(
this Type scopingType,
string scriptName
)
<ExtensionAttribute>
Public Shared Function GetText (
scopingType As Type,
scriptName As String
) As String
<ExtensionAttribute>
Public Shared Function GetText (
scopingType As Type,
scriptName As String
) As String
public:
[ExtensionAttribute]
static String^ GetText(
Type^ scopingType,
String^ scriptName
)
public:
[ExtensionAttribute]
static String^ GetText(
Type^ scopingType,
String^ scriptName
)
static member GetText :
scopingType : Type *
scriptName : string -> string
static member GetText :
scopingType : Type *
scriptName : string -> string
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).