public void AddEntities(IEnumerable <Models.EntityType> entities) { foreach (var enty in entities) { Angular.StructuredTypeConfig config; var entity = new Angular.Entity(enty, this.Options); this.Entities.Add(entity); if (this.Options.Models) { var model = new Angular.Model(enty, entity, this.Options); this.Models.Add(model); var collection = new Angular.Collection(enty, model, this.Options); this.Collections.Add(collection); config = new Angular.StructuredTypeConfig(entity, model, collection, this.Options); } else { config = new Angular.StructuredTypeConfig(entity, this.Options); } this.EntityConfigs.Add(config); } }
public EntityFieldConfig(Models.Property property, Angular.StructuredTypeConfig config) { this.Value = property; this.Config = config; }