表格不是在asp.net subsonic中更新的

时间:2011-09-02 12:13:11

标签: asp.net subsonic

表格未更新。我正在使用亚音速2

Item item = new Item();

                item.ItemID = varItemID;

                item.ItemDescription = varItemDescription;

                item.ProductGroupID = varProductGroupID;

                item.LinkedDist = varLinkedDist;

                item.ValueX = varValueX;

                item.TaxRate = varTaxRate;

                item.TalkTime = varTalkTime;

                item.ExpiryDate = varExpiryDate;

                item.UsageValidity = varUsageValidity;

                item.Reorderpoint = varReorderpoint;

                item.ItemCode = varItemCode;

                item.ProvSKU = varProvSKU;

                item.IsBulkEnabled = varIsBulkEnabled;

                item.CreatedOn = varCreatedOn;

                item.CreatedBy = varCreatedBy;

                item.ModifiedOn = varModifiedOn;

                item.ModifiedBy = varModifiedBy;

                item.IsDeleted = varIsDeleted;



                item.IsNew = false;

                if (System.Web.HttpContext.Current != null)
                    item.Save(System.Web.HttpContext.Current.User.Identity.Name);
                else
                    item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name);

0 个答案:

没有答案