Exemple #1
0
 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);
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 public Model(Models.StructuredType type, Angular.Entity entity, ApiOptions options) : base(type, options)
 {
     this.Entity = entity;
 }
Exemple #4
0
 public StructuredTypeConfig(Angular.Entity entity, ApiOptions options) : base(options)
 {
     this.Entity = entity;
     this.AddDependency(entity);
 }
Exemple #5
0
 public void SetEntity(Angular.Entity entity)
 {
     this.Entity = entity;
 }