ConventionsConfiguration Class

Definition

Allows the conventions used by a DbModelBuilder instance to be customized. The default conventions can be found in the System.Data.Entity.ModelConfiguration.Conventions namespace.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
public class ConventionsConfiguration
public class ConventionsConfiguration
type ConventionsConfiguration = class
Public Class ConventionsConfiguration
Inheritance
ConventionsConfiguration
Attributes

Methods

Add(IConvention[])

Enables one or more conventions for the DbModelBuilder.

Add<TConvention>()

Enables a convention for the DbModelBuilder.

AddAfter<TExistingConvention>(IConvention)

Enables a convention for the DbModelBuilder. This convention will run after the one specified.

AddBefore<TExistingConvention>(IConvention)

Enables a configuration convention for the DbModelBuilder. This convention will run before the one specified.

AddFromAssembly(Assembly)

Discover all conventions in the given assembly and add them to the DbModelBuilder.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

GetType()

Gets the Type of the current instance.

Remove(IConvention[])

Disables one or more conventions for the DbModelBuilder.

Remove<TConvention>()

Disables a convention for the DbModelBuilder. The default conventions that are available for removal can be found in the System.Data.Entity.ModelConfiguration.Conventions namespace.

ToString()

Returns a string that represents the current object.

Applies to