本文整理匯總了C#中System.Entity.getItemID方法的典型用法代碼示例。如果您正苦於以下問題:C# Entity.getItemID方法的具體用法?C# Entity.getItemID怎麽用?C# Entity.getItemID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Entity
的用法示例。
在下文中一共展示了Entity.getItemID方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: InserItemsPic
////新增圖片
//public bool InserItemsPic(int ItemID,string BigImg,string SmallImg,string Alt) {
// if (sqlHelper.ExcuteCommandInt("insert into Images(ItemID,BigImg,SmallImg,Alt) values ("
// +ItemID+",'"+BigImg+"','"+SmallImg+"','"+Alt+"')") > 0)
// return true;
// else
// return false;
//}
public bool InserItemsPic(Entity.PicturesItem picture)
{
if (sqlHelper.ExcuteCommandInt("insert into Images(ItemID,BigImg,SmallImg,Alt) values ("
+ picture.getItemID()+ ",'"
+picture.getBigImg()+ "','"
+picture.getSmallImg() + "','"
+picture.getAlt()+ "')") > 0)
return true;
else
return false;
}
示例2: UpdatePicByID
//更新指定圖片
//public bool UpdatePicByID(int intImageID,int ItemID, string BigImg, string SmallImg, string Alt)
//{
// if (sqlHelper.ExcuteCommandInt("update Images set ItemID="+ItemID+",BigImg='"+BigImg+"',SmallImg='"+SmallImg+"',Alt='"+Alt+"' where ImageID="+intImageID+")") > 0)
// return true;
// else
// return false;
//}
public bool UpdatePicByID(Entity.PicturesItem picture)
{
if (sqlHelper.ExcuteCommandInt("update Images set ItemID="
+picture.getItemID()+ ",BigImg='"
+picture.getBigImg() + "',SmallImg='"
+picture.getSmallImg()+ "',Alt='"
+picture.getAlt() + "' where ImageID="
+picture.getIntImageID() + ")") > 0)
return true;
else
return false;
}
示例3: UpdateSingleItem
//更新商品信息
//public bool UpdateSingleItem(int ItemID, int ProductID, int BrandID, string Name, string Area)
//{
// if (helper.ExcuteCommandInt("update Items set ProductID=" + ProductID + ",BrandID=" + BrandID + ", Name='" + Name + "', Area='" + Area + "' where IID =" + ItemID + "") > 0)
// return true;
// else
// return false;
//}
public bool UpdateSingleItem(Entity.Items item)
{
return helper.ExcuteCommandInt("update Items set ProductID="
+ item.getProductID() + ",BrandID="
+ item.getBrandID() + ", Name='"
+ item.getName() + "', Area='"
+ item.getArea() + "' where IID ="
+ item.getItemID() + "") > 0;
}
示例4: UpdateSinglePrice
//更新商品價格
public bool UpdateSinglePrice(Entity.Items item)
{
//int ItemID, string AgoraPrice, string MemberPrice, string VipPrice, string SeckillPrice
if (helper.ExcuteCommandInt("update Items set AgoraPrice='"
+ item.getAgoraPrice()+ "',MemberPrice='"
+ item.getMemberPrice()+ "',VipPrice='"
+ item.getVipPrice()+ "',SeckillPrice='"
+ item.getSeckillPrice()+ "' where IID ="
+ item.getItemID()+ "") > 0)
{
return true;
}
else
return false;
}
示例5: UpdateSingleItemSeckill
//更新秒殺信息
//public bool UpdateSingleItem(int ItemID, string Days, string Hours, string Minutes, string Seconds, string IsSecondKill)
//{
// if (helper.ExcuteCommandInt("update Items set Days='"
// + Days + "',Hours='" + Hours + "',Minutes='" + Minutes + "',Seconds='" + Seconds + "',IsSecondKill='" + IsSecondKill + "' where IID=" + ItemID + "") > 0)
// return true;
// else
// return false;
//}
public bool UpdateSingleItemSeckill(Entity.Items items)
{
if (helper.ExcuteCommandInt("update Items set Days='"
+items.getDays()+ "',Hours='"
+items.getHours()+ "',Minutes='"
+items.getMinutes()+ "',Seconds='"
+items.getSeconds()+ "',IsSecondKill='"
+items.getIsSecondKill()+ "' where IID="
+items.getItemID() + "") > 0)
return true;
else
return false;
}