Ejemplo n.º 1
0
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

            Configuration.Modules.StudioXEfGraphDiff().EntityMappings = new List <EntityMapping>
            {
                MappingExpressionBuilder.For <ContactList>(config => config.AssociatedCollection(entity => entity.People)),
                MappingExpressionBuilder.For <Person>(config => config.AssociatedEntity(entity => entity.ContactList))
            };
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            base.Initialize();

            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());

            Configuration.Modules.AbpEfGraphDiff().EntityMappings = new List <EntityMapping>
            {
                MappingExpressionBuilder.For <MyMainEntity>(config => config.AssociatedCollection(entity => entity.MyDependentEntities)),
                MappingExpressionBuilder.For <MyDependentEntity>(config => config.AssociatedEntity(entity => entity.MyMainEntity))
            };
        }