예제 #1
0
 /// <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>());
     }
 }
예제 #2
0
        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());
        }
예제 #3
0
 public void OnContextFeatureCreating(ModelBuilder modelBuilder, RemboardContextParameters contextParameters)
 {
     modelBuilder.ApplyConfiguration(new TenantEntityConfiguration());
 }
예제 #4
0
 public void OnContextFeatureCreating(ModelBuilder modelBuilder, RemboardContextParameters contextParameters)
 {
     modelBuilder.ApplyConfiguration(new UserEntityConfiguration());
     modelBuilder.ApplyConfiguration(new ProjectRoleConfiguration());
     modelBuilder.ApplyConfiguration(new UserBranchConfiguration());
 }