public static Category CreateCategory(string dataAreaId, string categoryId, global::Microsoft.Dynamics.DataEntities.SharedCategory sharedCategory) { Category category = new Category(); category.dataAreaId = dataAreaId; category.CategoryId = categoryId; if ((sharedCategory == null)) { throw new global::System.ArgumentNullException("sharedCategory"); } category.SharedCategory = sharedCategory; return(category); }
partial void OnSharedCategoryChanging(global::Microsoft.Dynamics.DataEntities.SharedCategory value);
public static ExpenseSharedSubCategory CreateExpenseSharedSubCategory(string name, string sharedCategoryId, int chargeType, global::Microsoft.Dynamics.DataEntities.SharedCategory belongsTo) { ExpenseSharedSubCategory expenseSharedSubCategory = new ExpenseSharedSubCategory(); expenseSharedSubCategory.Name = name; expenseSharedSubCategory.SharedCategoryId = sharedCategoryId; expenseSharedSubCategory.ChargeType = chargeType; if ((belongsTo == null)) { throw new global::System.ArgumentNullException("belongsTo"); } expenseSharedSubCategory.BelongsTo = belongsTo; return(expenseSharedSubCategory); }