public PaymentTypeViewModel(PaymentType paymentType) { if (paymentType == null) { throw new ArgumentNullException("paymentType"); } this.Model = paymentType; }
/// <summary> /// Deprecated Method for adding a new object to the PaymentTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPaymentTypes(PaymentType paymentType) { base.AddObject("PaymentTypes", paymentType); }
/// <summary> /// Create a new PaymentType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="sourceId">Initial value of the SourceId property.</param> public static PaymentType CreatePaymentType(global::System.Guid id, global::System.String code, global::System.String name, global::System.Int32 sourceId) { PaymentType paymentType = new PaymentType(); paymentType.Id = id; paymentType.Code = code; paymentType.Name = name; paymentType.SourceId = sourceId; return paymentType; }