| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- using Business.Domain;
- using Microsoft.Extensions.Hosting;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Security.Cryptography.Xml;
- using System.Text;
- using System.Threading.Tasks;
- using Volo.Abp.MongoDB;
- using Volo.Abp;
- namespace Bussiness.MongoDB
- {
- public static class BusinessMongoDbContextModelCreatingExtensions
- {
- public static void Configure(this IMongoModelBuilder builder)
- {
- Check.NotNull(builder, nameof(builder));
- builder.Entity<mo_ic_bom>(b =>
- {
- b.CollectionName = "mo_ic_bom";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_ic_bom_child>(b =>
- {
- b.CollectionName = "mo_ic_bom_child";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_ic_item>(b =>
- {
- b.CollectionName = "mo_ic_item";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_ic_item_stock>(b =>
- {
- b.CollectionName = "mo_ic_item_stock";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_ic_item_stockoccupy>(b =>
- {
- b.CollectionName = "mo_ic_item_stockoccupy";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_ic_substitute>(b =>
- {
- b.CollectionName = "mo_ic_substitute";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_ic_substitute_group>(b =>
- {
- b.CollectionName = "mo_ic_substitute_group";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_ic_substitute_group_detail>(b =>
- {
- b.CollectionName = "mo_ic_substitute_group_detail";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_moentry>(b =>
- {
- b.CollectionName = "mo_mes_moentry";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_mooccupy>(b =>
- {
- b.CollectionName = "mo_mes_mooccupy";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_morder>(b =>
- {
- b.CollectionName = "mo_mes_morder";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_oorder>(b =>
- {
- b.CollectionName = "mo_mes_oorder";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_srm_po_list>(b =>
- {
- b.CollectionName = "mo_srm_po_list";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_srm_po_main>(b =>
- {
- b.CollectionName = "mo_srm_po_main";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_srm_po_occupy>(b =>
- {
- b.CollectionName = "mo_srm_po_occupy";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_srm_pr_main>(b =>
- {
- b.CollectionName = "mo_srm_pr_main";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_srm_purchase>(b =>
- {
- b.CollectionName = "mo_srm_purchase";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_srm_supplier>(b =>
- {
- b.CollectionName = "mo_srm_supplier";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_process>(b =>
- {
- b.CollectionName = "mo_mes_process";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_tech_proc_workshop>(b =>
- {
- b.CollectionName = "mo_mes_tech_proc_workshop";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_tech_process>(b =>
- {
- b.CollectionName = "mo_mes_tech_process";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- builder.Entity<mo_mes_technique>(b =>
- {
- b.CollectionName = "mo_mes_technique";
- b.BsonMap.AutoMap();
- b.BsonMap.SetIgnoreExtraElements(true);
- });
- }
- }
- }
|