Ejemplo n.º 1
0
        public void Apply(ISchemaLayoutBuilder <TSchema> builder)
        {
            var entityMapBuilder = new DynamicLayoutBuilder <TLayout, TSchema>(builder);

            foreach (var specification in _specifications.Values)
            {
                specification.Apply(entityMapBuilder);
            }

            var map = entityMapBuilder.Build();

            builder.Add(map);
        }
Ejemplo n.º 2
0
        void BuildLayout(ISchemaLayoutBuilder <TSchema> builder)
        {
            var layoutBuilder = new DynamicLayoutBuilder <TLayout, TSchema>(builder);

            foreach (var specification in _specifications.Values)
            {
                specification.Apply(layoutBuilder);
            }

            var map = layoutBuilder.Build();

            builder.Add(map);
        }