public static EntityTypeEntity CreateEntityType() { EntityTypeRepository repository = new EntityTypeRepository(ConfigSettings.MySqlDatabaseConnectionName); EntityTypeEntity entity = EntityTypeData.GetItemForInsert(); //repository.ClearCollection(); entity = repository.Create(entity); return entity; }
private static void CreateEntityTypes() { EntityTypeRepository repository = new EntityTypeRepository(ConfigSettings.MySqlDatabaseConnectionName); EntityTypeEntity entity = new EntityTypeEntity() { Description = "Contact", DeletedDate = DateTime.MinValue }; EntityTypeEntity mEntity = new EntityTypeEntity() { Description = "Employee", DeletedDate = DateTime.MinValue }; entity = repository.Create(entity); mEntity = repository.Create(mEntity); _entityTypeEntities.Add(entity); _entityTypeEntities.Add(mEntity); }