ModelExtensions ModelExtensions Class

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.

Syntax

Declaration

public static class ModelExtensionsPublic Module ModelExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • ModelExtensions
    ModelExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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.

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.

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.

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.

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.

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
    • methodName
      System.String
      System.String

    Returns

  • 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

    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

    Returns

    • System.Collections.Generic.IEnumerable<T><IEntityType>
      System.Collections.Generic.IEnumerable<T>(Of IEntityType)
  • 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
    • 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

    Returns

    • System.String
      System.String

Details

Assembly

Microsoft.EntityFrameworkCore.dll