示例#1
0
 public static System.Collections.Generic.List <ServiceStack.Translators.Generator.Tests.Support.DataContract.Address> ToDtoAddresss(this System.Collections.Generic.IEnumerable <ServiceStack.Translators.Generator.Tests.Support.Model.Address> from)
 {
     if ((from == null))
     {
         return(null);
     }
     System.Collections.Generic.List <ServiceStack.Translators.Generator.Tests.Support.DataContract.Address> to = new System.Collections.Generic.List <ServiceStack.Translators.Generator.Tests.Support.DataContract.Address>();
     for (System.Collections.Generic.IEnumerator <ServiceStack.Translators.Generator.Tests.Support.Model.Address> iter = from.GetEnumerator(); iter.MoveNext();
          )
     {
         ServiceStack.Translators.Generator.Tests.Support.Model.Address item = iter.Current;
         to.Add(item.ToDtoAddress());
     }
     return(to);
 }
示例#2
0
 public static ServiceStack.Translators.Generator.Tests.Support.Model.Address UpdateAddress(this ServiceStack.Translators.Generator.Tests.Support.DataContract.Address fromParam, ServiceStack.Translators.Generator.Tests.Support.Model.Address to)
 {
     ServiceStack.Translators.Generator.Tests.Support.DataContract.Address from = fromParam;
     to.Line1 = from.Line1;
     to.Line2 = from.Line2;
     return(to);
 }
示例#3
0
 public static ServiceStack.Translators.Generator.Tests.Support.DataContract.Address ToDtoAddress(this ServiceStack.Translators.Generator.Tests.Support.Model.Address from)
 {
     if ((from == null))
     {
         return(null);
     }
     ServiceStack.Translators.Generator.Tests.Support.DataContract.Address to = new ServiceStack.Translators.Generator.Tests.Support.DataContract.Address();
     to.Line1 = from.Line1;
     to.Line2 = from.Line2;
     return(to);
 }
 public virtual ServiceStack.Translators.Generator.Tests.Support.Model.Address UpdateAddress(ServiceStack.Translators.Generator.Tests.Support.Model.Address model)
 {
     ServiceStack.Translators.Generator.Tests.Support.DataContract.Address from = this;
     model.Line1 = from.Line1;
     model.Line2 = from.Line2;
     return(model);
 }