Class EFCompat.EF5Compat
- Namespace
- Uncreated.Warfare.Database
- Assembly
- Uncreated.Warfare.dll
public class EFCompat.EF5Compat : IEFCompatProvider
- Inheritance
-
EFCompat.EF5Compat
- Implements
-
- Inherited Members
-
Methods
public IMutableIndex AddIndex(IMutableEntityType type, IMutableProperty prop)
Parameters
type IMutableEntityType
prop IMutableProperty
Returns
- IMutableIndex
public IMutableProperty AddProperty(IMutableEntityType type, MemberInfo member)
Parameters
type IMutableEntityType
member MemberInfo
Returns
- IMutableProperty
public IMutableProperty AddProperty(IMutableEntityType type, string name, Type clrType)
Parameters
type IMutableEntityType
name string
clrType Type
Returns
- IMutableProperty
DontLogExceptionDuringSaveChanges(DbContext)
public void DontLogExceptionDuringSaveChanges(DbContext dbContext)
Parameters
dbContext DbContext
public Type GetClrType(IMutableProperty prop)
Parameters
prop IMutableProperty
Returns
- Type
public Type GetClrType(ITypeBase type)
Parameters
type ITypeBase
Returns
- Type
public string GetColumnType(IMutableProperty prop)
Parameters
prop IMutableProperty
Returns
- string
public IMutableEntityType GetDeclaringEntityType(IMutableProperty prop)
Parameters
prop IMutableProperty
Returns
- IMutableEntityType
public bool GetIsNullable(IProperty prop)
Parameters
prop IProperty
Returns
- bool
public MemberInfo GetMemberInfo(IPropertyBase prop, bool forMaterialization, bool forSet)
Parameters
prop IPropertyBase
forMaterialization bool
forSet bool
Returns
- MemberInfo
public string GetName(IPropertyBase prop)
Parameters
prop IPropertyBase
Returns
- string
public string GetName(ITypeBase type)
Parameters
type ITypeBase
Returns
- string
public IEnumerable<IProperty> GetProperties(IEntityType entity)
Parameters
entity IEntityType
Returns
- IEnumerable<IProperty>
public IEnumerable<IMutableProperty> GetProperties(IMutableEntityType entity)
Parameters
entity IMutableEntityType
Returns
- IEnumerable<IMutableProperty>
public PropertyInfo? GetPropertyInfo(IMutableProperty prop)
Parameters
prop IMutableProperty
Returns
- PropertyInfo
public ValueConverter? GetValueConverter(IProperty prop)
Parameters
prop IProperty
Returns
- ValueConverter
public IMutableEntityType? RemoveEntityType(IMutableModel model, Type type)
Parameters
model IMutableModel
type Type
Returns
- IMutableEntityType
public void SetColumnType(IMutableProperty prop, string columnType)
Parameters
prop IMutableProperty
columnType string
public void SetDefaultValue(IMutableProperty prop, string? defaultValue)
Parameters
prop IMutableProperty
defaultValue string
public void SetIsNullable(IMutableProperty prop, bool isNullable)
Parameters
prop IMutableProperty
isNullable bool
public void SetMaxLength(IMutableProperty prop, int? maxLength)
Parameters
prop IMutableProperty
maxLength int?
public void SetValueConverter(IMutableProperty prop, ValueConverter? valueConverter)
Parameters
prop IMutableProperty
valueConverter ValueConverter
public void SetValueGeneratorFactory(IMutableProperty prop, Func<IProperty, IEntityType, ValueGenerator> valueGeneratorFactory)
Parameters
prop IMutableProperty
valueGeneratorFactory Func<IProperty, IEntityType, ValueGenerator>