ModelExtensions ModelExtensions 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 static class ModelExtensions
Public Module ModelExtensions
Inheritance
System.ObjectSystem.Object
ModelExtensionsModelExtensions

Methods

AsModel(IModel, String) AsModel(IModel, 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 static Model AsModel(this IModel model, string methodName = "")
<ExtensionAttribute>
Public Shared Function AsModel(model As IModel, methodName As String = "") As Model
Parameters
model
IModel IModel
methodName
System.String System.String
Returns

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetProductVersion(IModel) GetProductVersion(IModel)

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 string GetProductVersion(this IModel model)
<ExtensionAttribute>
Public Shared Function GetProductVersion(model As IModel) As String
Parameters
model
IModel IModel
Returns
System.String System.String

GetRootEntityTypes(IModel) GetRootEntityTypes(IModel)

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 IEnumerable<IEntityType> GetRootEntityTypes(this IModel model)
<ExtensionAttribute>
Public Shared Function GetRootEntityTypes(model As IModel) As IEnumerable(Of IEntityType)
Parameters
model
IModel IModel
Returns
System.Collections.Generic.IEnumerable<IEntityType> System.Collections.Generic.IEnumerable(Of IEntityType)

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

SetProductVersion(Model, String) SetProductVersion(Model, 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 static void SetProductVersion(this Model model, string value)
<ExtensionAttribute>
Public Shared Sub SetProductVersion(model As Model, value As String)
Parameters
model
Model Model
value
System.String System.String

ToDebugString(IModel, String) ToDebugString(IModel, 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 static string ToDebugString(this IModel model, string indent = "")
<ExtensionAttribute>
Public Shared Function ToDebugString(model As IModel, indent As String = "") As String
Parameters
model
IModel IModel
indent
System.String System.String
Returns
System.String System.String

ToString() ToString()

Inherited from System.Object