Пример #1
0
 private void Write(ContainerAddToCollectionMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         _("this.Context.AddObject(\"{0}\", (object) {1});", method.ModelCollectionName,
           method.Parameters.First().Name);
     }
 }
Пример #2
0
 private void Write(ContainerAddToCollectionMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         _("this.Context.AddObject(\"{0}\", (object) {1});", method.ModelCollectionName,
             method.Parameters.First().Name);
     }
 }