Example #1
0
        /// <summary>
        /// Create a new ExpenseList object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="expenseGroupId">Initial value of the ExpenseGroupId property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="cost">Initial value of the Cost property.</param>
        /// <param name="creationDate">Initial value of the CreationDate property.</param>
        /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
        public static ExpenseList CreateExpenseList(global::System.Int32 id, global::System.Int32 expenseGroupId, global::System.String name, global::System.Decimal cost, global::System.DateTime creationDate, global::System.Boolean isDeleted)
        {
            ExpenseList expenseList = new ExpenseList();

            expenseList.Id             = id;
            expenseList.ExpenseGroupId = expenseGroupId;
            expenseList.Name           = name;
            expenseList.Cost           = cost;
            expenseList.CreationDate   = creationDate;
            expenseList.IsDeleted      = isDeleted;
            return(expenseList);
        }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TblExpenseLists EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTblExpenseLists(ExpenseList expenseList)
 {
     base.AddObject("TblExpenseLists", expenseList);
 }