Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 partial void OnSharedCategoryChanging(global::Microsoft.Dynamics.DataEntities.SharedCategory value);
Exemplo n.º 3
0
        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);
        }