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(b => { b.CollectionName = "mo_ic_bom"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_ic_bom_child"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_ic_item"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_ic_item_stock"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_ic_item_stockoccupy"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_ic_substitute"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_ic_substitute_group"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_ic_substitute_group_detail"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_moentry"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_mooccupy"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_morder"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_oorder"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_srm_po_list"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_srm_po_main"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_srm_po_occupy"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_srm_pr_main"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_srm_purchase"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_srm_supplier"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_process"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_tech_proc_workshop"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_tech_process"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); builder.Entity(b => { b.CollectionName = "mo_mes_technique"; b.BsonMap.AutoMap(); b.BsonMap.SetIgnoreExtraElements(true); }); } } }