/// <summary> /// Only when TEntityDto use as typed parameter FromSqlRaw method of entity context /// </summary> public static void ApplyEntityDtoConfiguration <TEntityDto>(this ModelBuilder modelBuilder, RemboardContextParameters contextParameters) where TEntityDto : class { if (!contextParameters.IsDesignTime) { modelBuilder.ApplyConfiguration(new EntityDtoConfiguration <TEntityDto>()); } }
public void OnContextFeatureCreating(ModelBuilder modelBuilder, RemboardContextParameters contextParameters) { modelBuilder.ApplyConfiguration(new AutocompleteItemConfiguration()); modelBuilder.ApplyConfiguration(new AutocompleteKindConfiguration()); modelBuilder.ApplyEntityDtoConfiguration <AutocompleteItemDto>(contextParameters); modelBuilder.ApplyConfiguration(new OrderStatusConfiguration()); modelBuilder.ApplyConfiguration(new OrderStatusKindConfiguration()); modelBuilder.ApplyEntityDtoConfiguration <OrderStatusDto>(contextParameters); modelBuilder.ApplyConfiguration(new BranchConfiguration()); modelBuilder.ApplyConfiguration(new OrderTypeConfiguration()); }
public void OnContextFeatureCreating(ModelBuilder modelBuilder, RemboardContextParameters contextParameters) { modelBuilder.ApplyConfiguration(new TenantEntityConfiguration()); }
public void OnContextFeatureCreating(ModelBuilder modelBuilder, RemboardContextParameters contextParameters) { modelBuilder.ApplyConfiguration(new UserEntityConfiguration()); modelBuilder.ApplyConfiguration(new ProjectRoleConfiguration()); modelBuilder.ApplyConfiguration(new UserBranchConfiguration()); }