CSharpUtilities CSharpUtilities Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class CSharpUtilities
Public Class CSharpUtilities
Inheritance
System.ObjectSystem.Object
CSharpUtilitiesCSharpUtilities

Properties

Instance Instance

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static CSharpUtilities Instance { get; }
Public Shared ReadOnly Property Instance As CSharpUtilities

Methods

DelimitString(String) DelimitString(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string DelimitString(string value)
Public Overridable Function DelimitString(value As String) As String
Parameters
value
System.String System.String
Returns
System.String System.String

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

EscapeString(String) EscapeString(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string EscapeString(string str)
Public Overridable Function EscapeString(str As String) As String
Parameters
str
System.String System.String
Returns
System.String System.String

EscapeVerbatimString(String) EscapeVerbatimString(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string EscapeVerbatimString(string str)
Public Overridable Function EscapeVerbatimString(str As String) As String
Parameters
str
System.String System.String
Returns
System.String System.String

GenerateCSharpIdentifier(String, ICollection) GenerateCSharpIdentifier(String, ICollection(Of String))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateCSharpIdentifier(string identifier, ICollection<string> existingIdentifiers)
Public Overridable Function GenerateCSharpIdentifier(identifier As String, existingIdentifiers As ICollection(Of String)) As String
Parameters
identifier
System.String System.String
existingIdentifiers
System.Collections.Generic.ICollection<System.String> System.Collections.Generic.ICollection(Of System.String)
Returns
System.String System.String

GenerateCSharpIdentifier(String, ICollection, Func, String>) GenerateCSharpIdentifier(String, ICollection(Of String), Func(Of String, ICollection(Of String), String))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateCSharpIdentifier(string identifier, ICollection<string> existingIdentifiers, Func<string, ICollection<string>, string> uniquifier)
Public Overridable Function GenerateCSharpIdentifier(identifier As String, existingIdentifiers As ICollection(Of String), uniquifier As Func(Of String, ICollection(Of String), String)) As String
Parameters
identifier
System.String System.String
existingIdentifiers
System.Collections.Generic.ICollection<System.String> System.Collections.Generic.ICollection(Of System.String)
uniquifier
System.Func<System.String, System.Collections.Generic.ICollection<System.String>, System.String> System.Func(Of System.String, System.Collections.Generic.ICollection(Of System.String), System.String)
Returns
System.String System.String

GenerateLiteral(Boolean) GenerateLiteral(Boolean)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(bool value)
Public Overridable Function GenerateLiteral(value As Boolean) As String
Parameters
value
System.Boolean System.Boolean
Returns
System.String System.String

GenerateLiteral(Byte[]) GenerateLiteral(Byte())

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(byte[] value)
Public Overridable Function GenerateLiteral(value As Byte()) As String
Parameters
value
System.Byte[] System.Byte()
Returns
System.String System.String

GenerateLiteral(DateTime) GenerateLiteral(DateTime)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(DateTime value)
Public Overridable Function GenerateLiteral(value As Date) As String
Parameters
value
System.DateTime System.DateTime
Returns
System.String System.String

GenerateLiteral(DateTimeOffset) GenerateLiteral(DateTimeOffset)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(DateTimeOffset value)
Public Overridable Function GenerateLiteral(value As DateTimeOffset) As String
Parameters
value
System.DateTimeOffset System.DateTimeOffset
Returns
System.String System.String

GenerateLiteral(Decimal) GenerateLiteral(Decimal)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(decimal value)
Public Overridable Function GenerateLiteral(value As Decimal) As String
Parameters
value
System.Decimal System.Decimal
Returns
System.String System.String

GenerateLiteral(Double) GenerateLiteral(Double)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(double value)
Public Overridable Function GenerateLiteral(value As Double) As String
Parameters
value
System.Double System.Double
Returns
System.String System.String

GenerateLiteral(Guid) GenerateLiteral(Guid)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(Guid value)
Public Overridable Function GenerateLiteral(value As Guid) As String
Parameters
value
System.Guid System.Guid
Returns
System.String System.String

GenerateLiteral(Int32) GenerateLiteral(Int32)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(int value)
Public Overridable Function GenerateLiteral(value As Integer) As String
Parameters
value
System.Int32 System.Int32
Returns
System.String System.String

GenerateLiteral(Int64) GenerateLiteral(Int64)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(long value)
Public Overridable Function GenerateLiteral(value As Long) As String
Parameters
value
System.Int64 System.Int64
Returns
System.String System.String

GenerateLiteral(Object) GenerateLiteral(Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(object value)
Public Overridable Function GenerateLiteral(value As Object) As String
Parameters
value
System.Object System.Object
Returns
System.String System.String

GenerateLiteral(Single) GenerateLiteral(Single)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(float value)
Public Overridable Function GenerateLiteral(value As Single) As String
Parameters
value
System.Single System.Single
Returns
System.String System.String

GenerateLiteral(String) GenerateLiteral(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(string value)
Public Overridable Function GenerateLiteral(value As String) As String
Parameters
value
System.String System.String
Returns
System.String System.String

GenerateLiteral(TimeSpan) GenerateLiteral(TimeSpan)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateLiteral(TimeSpan value)
Public Overridable Function GenerateLiteral(value As TimeSpan) As String
Parameters
value
System.TimeSpan System.TimeSpan
Returns
System.String System.String

GenerateVerbatimStringLiteral(String) GenerateVerbatimStringLiteral(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GenerateVerbatimStringLiteral(string value)
Public Overridable Function GenerateVerbatimStringLiteral(value As String) As String
Parameters
value
System.String System.String
Returns
System.String System.String

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

GetTypeName(Type) GetTypeName(Type)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string GetTypeName(Type propertyType)
Public Overridable Function GetTypeName(propertyType As Type) As String
Parameters
propertyType
System.Type System.Type
Returns
System.String System.String

IsCSharpKeyword(String) IsCSharpKeyword(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual bool IsCSharpKeyword(string identifier)
Public Overridable Function IsCSharpKeyword(identifier As String) As Boolean
Parameters
identifier
System.String System.String
Returns
System.Boolean System.Boolean

IsValidIdentifier(String) IsValidIdentifier(String)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual bool IsValidIdentifier(string name)
Public Overridable Function IsValidIdentifier(name As String) As Boolean
Parameters
name
System.String System.String
Returns
System.Boolean System.Boolean

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

Uniquifier(String, ICollection) Uniquifier(String, ICollection(Of String))

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual string Uniquifier(string proposedIdentifier, ICollection<string> existingIdentifiers)
Public Overridable Function Uniquifier(proposedIdentifier As String, existingIdentifiers As ICollection(Of String)) As String
Parameters
proposedIdentifier
System.String System.String
existingIdentifiers
System.Collections.Generic.ICollection<System.String> System.Collections.Generic.ICollection(Of System.String)
Returns
System.String System.String