public StructuredTypeConfig(Angular.Entity entity, Angular.Model model, Angular.Collection collection, ApiOptions options) : this(entity, options) { this.Model = model; this.Collection = collection; this.AddDependency(model); this.AddDependency(collection); }
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 Model(Models.StructuredType type, Angular.Entity entity, ApiOptions options) : base(type, options) { this.Entity = entity; }
public StructuredTypeConfig(Angular.Entity entity, ApiOptions options) : base(options) { this.Entity = entity; this.AddDependency(entity); }
public void SetEntity(Angular.Entity entity) { this.Entity = entity; }