示例#1
0
文件: Association.cs 项目: bpugh/Oak
 public override void AddNewAssociationMethod(DynamicModels collection, dynamic model)
 {
     collection.SetMember(
         "New",
         new DynamicFunctionWithParam(attributes =>
     {
         return(EntityFor(model, attributes));
     }));
 }
示例#2
0
 private void AddNewAssociationMethod(DynamicModels collection, DynamicModel model)
 {
     collection.SetMember(
         "New",
         new DynamicFunctionWithParam(attributes =>
     {
         return(EntityFor(attributes));
     }));
 }
示例#3
0
 public override void AddNewAssociationMethod(DynamicModels collection, dynamic model)
 {
     collection.SetMember("New", NewItemDelegate(model));
 }
示例#4
0
 public virtual void AddNewAssociationMethod(DynamicModels collection, dynamic model)
 {
     collection.SetMember("New", NewItemDelegate());
 }
示例#5
0
 public virtual void AddRepository(DynamicModels collection, DynamicRepository repository)
 {
     collection.SetMember("Repository", repository);
 }