public void Update(List<businessobjects.tables.item> paramItemDetailCollection) { string spName = "spupdateItem"; Database db = DatabaseFactory.CreateDatabase(ConnectionString); foreach (FiesSaaS.BusinessObjects.Tables.Item ObjaItem in paramaItemDetailCollection) { DbCommand dbCommand = db.GetStoredProcCommand(spName); db.AddInParameter(dbCommand, "@ItemID", DbType.String, ObjItemDetail.ItemID); db.AddInParameter(dbCommand, "@PTypeID", DbType.String, ObjItemDetail.TypeID); db.AddInParameter(dbCommand, "@SlNo", DbType.String, ObjItemDetail.SlNo); db.AddInParameter(dbCommand, "@BarCode", DbType.String, ObjItemDetail.BarCode); db.ExecuteScalar(dbCommand); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)