private void BindBase <T>(string name, System.Data.Entity.ModelConfiguration.EntityTypeConfiguration <T> bind) where T : BaseModel { bind.HasKey(a => a.Id) .Property(a => a.Id) .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); bind.Property(a => a.SecurityStamp) .HasMaxLength(36) .IsFixedLength() .IsConcurrencyToken(); bind.ToTable(name); }
public static System.Data.Entity.ModelConfiguration.EntityTypeConfiguration <TEntity> IgnoreCatelProperties <TEntity>(this System.Data.Entity.ModelConfiguration.EntityTypeConfiguration <TEntity> configuration) where TEntity : Catel.Data.ModelBase { }