/// <summary> /// Deprecated Method for adding a new object to the Banks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBanks(Bank bank) { base.AddObject("Banks", bank); }
/// <summary> /// Create a new Bank object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="bankCode">Initial value of the BankCode property.</param> /// <param name="bankName">Initial value of the BankName property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static Bank CreateBank(global::System.Int32 id, global::System.String bankCode, global::System.String bankName, global::System.Boolean discontinued, global::System.Byte[] rowVersion) { Bank bank = new Bank(); bank.Id = id; bank.BankCode = bankCode; bank.BankName = bankName; bank.Discontinued = discontinued; bank.RowVersion = rowVersion; return bank; }