public static DomainEntityCollection<Relationship> MakeGroup(params string[] codes)
 {
     DomainEntityCollection<Relationship> retval = new DomainEntityCollection<Relationship>();
     foreach (var c in codes)
     {
         retval.Add(new Relationship(null) { Code = c });
     }
     return retval;
 }
 public static DomainEntityCollection<Relationship> MakeGroup(IronPython.Runtime.List lst)
 {
     DomainEntityCollection<Relationship> retval = new DomainEntityCollection<Relationship>();
     foreach (var c in lst)
     {
         retval.Add(new Relationship(null) { Code = (string)c });
     }
     return retval;
 }
 private void AttachFeeCollection(DomainEntityCollection<Fee> fees, SqlEntityBase attachTo, string feeTypeCode)
 {
     foreach (Fee f in fees)
     {
         Fee_assignment fa = new Fee_assignment();
         fa.PopulateFrom(f);
         fa.business_unit_product_id.Value = attachTo.Variable;
         fa.fee_schedule_id.Value = _feeScheduleMap[f];
         fa.fee_type_cd_id.Value = GSC(SystemCodeType.FEE_TYPE, feeTypeCode);
         fa.business_unit_product_order_method_id.Value = GSC(SystemCodeType.ORDER_METHOD, f.OrderMethod);
         fa.business_unit_product_payment_method_id.Value = GSC(SystemCodeType.PAYMENT_TYPE, f.PaymentMethod);
         _sqlEntities.Add(fa);
     }
 }