本文整理匯總了C#中WebSpider.Data.DatabaseManager.SqlCeDataManager.AddBoolPara方法的典型用法代碼示例。如果您正苦於以下問題:C# SqlCeDataManager.AddBoolPara方法的具體用法?C# SqlCeDataManager.AddBoolPara怎麽用?C# SqlCeDataManager.AddBoolPara使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WebSpider.Data.DatabaseManager.SqlCeDataManager
的用法示例。
在下文中一共展示了SqlCeDataManager.AddBoolPara方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: GetData
public List<AdiCategory> GetData(Boolean ClearanceZone, Boolean SaleCenter, Boolean OnlineSpecials, Boolean HotDeals, Boolean InStock)
{
String Query = "SELECT * FROM ADICategory WITH (NOLOCK) "
+ "WHERE ClearanceZone = @ClearanceZone AND SaleCenter = @SaleCenter AND OnlineSpecials = @OnlineSpecials AND HotDeals = @HotDeals AND InStock = @InStock";
SqlCeDataManager oDm = new SqlCeDataManager(this.ConnectionString, Query, true);
oDm.AddBoolPara("ClearanceZone", ClearanceZone);
oDm.AddBoolPara("SaleCenter", SaleCenter);
oDm.AddBoolPara("OnlineSpecials", OnlineSpecials);
oDm.AddBoolPara("HotDeals", HotDeals);
oDm.AddBoolPara("InStock", InStock);
return DataParser.ToList<AdiCategory>(oDm.GetTable());
}
示例2: Insert
public int Insert(Int64 ScheduleID, String TaskName, String TaskDescription, String Site, DateTime ScheduleFrom
, Boolean TaskRepeat, Int32 TaskRepeatInterval, String TaskRepeatUnit, Boolean Enabled)
{
String Query = "INSERT INTO [TaskHeader] ([TaskName], [TaskDescription], [Site], [ScheduleFrom], [TaskRepeat], [TaskRepeatInterval], [TaskRepeatUnit], [Enabled], [CreatedDate]) "
+ "VALUES (@TaskName, @TaskDescription, @Site, @ScheduleFrom, @TaskRepeat, @TaskRepeatInterval, @TaskRepeatUnit, @Enabled, @CreatedDate);";
SqlCeDataManager oDm = new SqlCeDataManager(this.ConnectionString, Query, true);
//oDm.AddIntegerBigPara("ScheduleID", ScheduleID);
oDm.AddVarcharPara("TaskName", 4000, TaskName);
oDm.AddVarcharPara("TaskDescription", 4000, TaskDescription);
oDm.AddVarcharPara("Site", 4000, Site);
oDm.AddDateTimePara("ScheduleFrom", ScheduleFrom);
oDm.AddBoolPara("TaskRepeat", TaskRepeat);
oDm.AddIntegerPara("TaskRepeatInterval", TaskRepeatInterval);
oDm.AddVarcharPara("TaskRepeatUnit", 4000, TaskRepeatUnit);
oDm.AddBoolPara("Enabled", Enabled);
oDm.AddDateTimePara("CreatedDate", DateTime.Now);
return oDm.RunActionQuery();
}
示例3: Update
public int Update(Int64 ScheduleID, String TaskName, String TaskDescription, String Site, DateTime ScheduleFrom
, Boolean TaskRepeat, Int32 TaskRepeatInterval, String TaskRepeatUnit, Boolean Enabled)
{
String Query = "UPDATE [TaskHeader] SET [TaskName] = @TaskName, [TaskDescription] = @TaskDescription, [Site] = @Site, "
+ "[ScheduleFrom] = @ScheduleFrom, [TaskRepeat] = @TaskRepeat, [TaskRepeatInterval] = @TaskRepeatInterval, "
+ "[TaskRepeatUnit] = @TaskRepeatUnit, [Enabled] = @Enabled "
+ "WHERE [ScheduleID] = @ScheduleID";
SqlCeDataManager oDm = new SqlCeDataManager(this.ConnectionString, Query, true);
oDm.AddIntegerBigPara("ScheduleID", ScheduleID);
oDm.AddVarcharPara("TaskName", 4000, TaskName);
oDm.AddVarcharPara("TaskDescription", 4000, TaskDescription);
oDm.AddVarcharPara("Site", 4000, Site);
oDm.AddDateTimePara("ScheduleFrom", ScheduleFrom);
oDm.AddBoolPara("TaskRepeat", TaskRepeat);
oDm.AddIntegerPara("TaskRepeatInterval", TaskRepeatInterval);
oDm.AddVarcharPara("TaskRepeatUnit", 4000, TaskRepeatUnit);
oDm.AddBoolPara("Enabled", Enabled);
return oDm.RunActionQuery();
}
示例4: Update
public int Update(Int64 TaskID, Int64 TaskHeaderID, string TaskNameText, string TaskNameValue, string TaskStatusText, int TaskStatus, bool DownloadImages, bool IgnitoMode, string TaskType, String TaskMode, string TaskSite)
{
String Query = "UPDATE TaskDetail SET TaskHeaderID = @TaskHeaderID, TaskNameText = @TaskNameText, TaskNameValue = @TaskNameValue, TaskStatusText = @TaskStatusText, TaskStatus = @TaskStatus, "
+ "DownloadImages = @DownloadImages, IgnitoMode = @IgnitoMode, TaskType = @TaskType, TaskMode = @TaskMode, TaskSite = @TaskSite, UpdatedOn = @UpdatedOn WHERE TaskID = @TaskID";
SqlCeDataManager oDm = new SqlCeDataManager(ConnectionString, Query, true);
oDm.AddIntegerBigPara("TaskID", TaskID);
oDm.AddIntegerBigPara("TaskHeaderID", TaskHeaderID);
oDm.AddVarcharPara("TaskNameText", 4000, TaskNameText);
oDm.AddVarcharPara("TaskNameValue", 4000, TaskNameValue);
oDm.AddVarcharPara("TaskStatusText", 4000, TaskStatusText);
oDm.AddIntegerPara("TaskStatus", TaskStatus);
oDm.AddBoolPara("DownloadImages", DownloadImages);
oDm.AddBoolPara("IgnitoMode", IgnitoMode);
oDm.AddVarcharPara("TaskType", 4000, TaskType);
oDm.AddVarcharPara("TaskMode", 4000, TaskMode);
oDm.AddVarcharPara("TaskSite", 4000, TaskSite);
oDm.AddDateTimePara("UpdatedOn", DateTime.Now);
return oDm.RunActionQuery();
}
示例5: UpdateIgnitoMode
public int UpdateIgnitoMode(Int64 TaskID, Boolean IgnitoMode)
{
String Query = "UPDATE TaskDetail SET IgnitoMode = @IgnitoMode, UpdatedOn = @UpdatedOn) WHERE TaskID = @TaskID";
SqlCeDataManager oDm = new SqlCeDataManager(ConnectionString, Query, true);
oDm.AddIntegerBigPara("TaskID", TaskID);
oDm.AddBoolPara("IgnitoMode", IgnitoMode);
oDm.AddDateTimePara("UpdatedOn", DateTime.Now);
return oDm.RunActionQuery();
}
示例6: UpdateByID
public int UpdateByID(
Int64 ID,
String AdiNumber,
String VendorName,
String VendorNumber,
String VendorModel,
String PartNumber,
String Name,
String Url,
String AllowedToBuy,
String DangerousGoodsMessage,
String InventoryMessage,
String MarketingMessage,
decimal? MinQty,
String ModelNumber,
decimal? Price,
String ProductDescription,
String ProductImagePath,
String RecycleFee,
String SaleMessageIndicator,
String SaleType,
String ST,
String SMI,
String InventoryMessageCode,
String CatagoryID,
String SmallImage,
String BigImage,
bool IsUpdating,
int UpdateInterval,
DateTime LastUpdateDatetime
)
{
String Query = "UPDATE ADIProduct1 WITH (ROWLOCK) SET AdiNumber = @AdiNumber, VendorName = @VendorName, VendorNumber = @VendorNumber, "
+ "VendorModel = @VendorModel, PartNumber = @PartNumber, Name = @Name, Url = @Url, AllowedToBuy = @AllowedToBuy, "
+ "DangerousGoodsMessage = @DangerousGoodsMessage, InventoryMessage = @InventoryMessage, MarketingMessage = @MarketingMessage, "
+ "MinQty = @MinQty, ModelNumber = @ModelNumber, Price = @Price, ProductDescription = @ProductDescription, ProductImagePath = @ProductImagePath, "
+ "RecycleFee = @RecycleFee, SaleMessageIndicator = @SaleMessageIndicator, SaleType = @SaleType, ST = @ST, SMI = @SMI, "
+ "InventoryMessageCode = @InventoryMessageCode, CatagoryID = @CatagoryID, SmallImage = @SmallImage, BigImage = @BigImage, "
+ "IsUpdating = @IsUpdating, UpdateInterval = @UpdateInterval, LastUpdateDatetime = @LastUpdateDatetime "
+ "WHERE ID = @ID";
SqlCeDataManager oDm = new SqlCeDataManager(this.ConnectionString, Query, true);
oDm.AddIntegerBigPara("ID", ID);
oDm.AddVarcharPara("AdiNumber", 4000, AdiNumber);
oDm.AddVarcharPara("VendorName", 4000, VendorName);
oDm.AddVarcharPara("VendorNumber", 4000, VendorNumber);
oDm.AddVarcharPara("VendorModel", 4000, VendorModel);
oDm.AddVarcharPara("PartNumber", 4000, PartNumber);
oDm.AddVarcharPara("Name", 4000, Name);
oDm.AddVarcharPara("Url", 4000, Url);
oDm.AddVarcharPara("AllowedToBuy", 4000, AllowedToBuy);
oDm.AddVarcharPara("DangerousGoodsMessage", 4000, DangerousGoodsMessage);
oDm.AddVarcharPara("InventoryMessage", 4000, InventoryMessage);
oDm.AddVarcharPara("MarketingMessage", 4000, MarketingMessage);
oDm.AddDecimalPara("MinQty", 2, 10, MinQty);
oDm.AddVarcharPara("ModelNumber", 4000, ModelNumber);
oDm.AddDecimalPara("Price", 2, 10, Price);
oDm.AddVarcharPara("ProductDescription", 4000, ProductDescription);
oDm.AddVarcharPara("ProductImagePath", 4000, ProductImagePath);
oDm.AddVarcharPara("RecycleFee", 4000, RecycleFee);
oDm.AddVarcharPara("SaleMessageIndicator", 4000, SaleMessageIndicator);
oDm.AddVarcharPara("SaleType", 4000, SaleType);
oDm.AddVarcharPara("ST", 4000, ST);
oDm.AddVarcharPara("SMI", 4000, SMI);
oDm.AddVarcharPara("InventoryMessageCode", 4000, InventoryMessageCode);
oDm.AddVarcharPara("CatagoryID", 4000, CatagoryID);
oDm.AddVarcharPara("SmallImage", 4000, SmallImage);
oDm.AddVarcharPara("BigImage", 4000, BigImage);
oDm.AddBoolPara("IsUpdating", IsUpdating);
oDm.AddIntegerPara("UpdateInterval", UpdateInterval);
oDm.AddDateTimePara("LastUpdateDatetime", LastUpdateDatetime);
return oDm.RunActionQuery();
}
示例7: Insert
public int Insert(Int64 TaskID, Int64 TaskHeaderID, String TaskNameText, String TaskNameValue, String TaskStatusText, int TaskStatus, Boolean DownloadImages, Boolean IgnitoMode, String TaskType, String TaskMode, String TaskSite)
{
String Query = "INSERT INTO TaskDetail (TaskHeaderID, TaskNameText ,TaskNameValue ,TaskStatusText ,TaskStatus, DownloadImages, IgnitoMode, TaskType, TaskMode ,TaskSite ,CreatedOn, UpdatedOn) "
+ "VALUES (@TaskHeaderID, @TaskNameText ,@TaskNameValue ,@TaskStatusText ,@TaskStatus, @DownloadImages, @IgnitoMode ,@TaskType, @TaskMode ,@TaskSite ,@CreatedOn, @UpdatedOn)";
SqlCeDataManager oDm = new SqlCeDataManager(ConnectionString, Query, true);
oDm.AddIntegerBigPara("TaskHeaderID", TaskHeaderID);
oDm.AddVarcharPara("TaskNameText", 4000, TaskNameText);
oDm.AddVarcharPara("TaskNameValue", 4000, TaskNameValue);
oDm.AddVarcharPara("TaskStatusText", 4000, TaskStatusText);
oDm.AddIntegerPara("TaskStatus", TaskStatus);
oDm.AddBoolPara("DownloadImages", DownloadImages);
oDm.AddBoolPara("IgnitoMode", IgnitoMode);
oDm.AddVarcharPara("TaskType", 4000, TaskType);
oDm.AddVarcharPara("TaskMode", 4000, TaskMode);
oDm.AddVarcharPara("TaskSite", 4000, TaskSite);
oDm.AddDateTimePara("CreatedOn", DateTime.Now);
oDm.AddDateTimePara("UpdatedOn", null);
return oDm.RunActionQuery();
}
示例8: SetUpdating
public int SetUpdating(String AdiNumber, Boolean IsUpdating)
{
String Query = "UPDATE ADIProduct1 WITH (ROWLOCK) SET IsUpdating = @IsUpdating WHERE AdiNumber = @AdiNumber";
SqlCeDataManager oDm = new SqlCeDataManager(this.ConnectionString, Query, true);
oDm.AddVarcharPara("AdiNumber", 4000, AdiNumber);
oDm.AddBoolPara("IsUpdating", IsUpdating);
return oDm.RunActionQuery();
}
示例9: SetProductPriority
public int SetProductPriority(String AdiNumber, Boolean PriorityProduct, Int32 LeastCount)
{
String Query = "UPDATE ADIProduct1 WITH (ROWLOCK) SET PriorityProduct = @PriorityProduct, LeastCount = @LeastCount WHERE AdiNumber = @AdiNumber";
SqlCeDataManager oDm = new SqlCeDataManager(this.ConnectionString, Query, true);
oDm.AddVarcharPara("AdiNumber", 4000, AdiNumber);
oDm.AddBoolPara("PriorityProduct", PriorityProduct);
oDm.AddIntegerPara("LeastCount", LeastCount);
return oDm.RunActionQuery();
}
示例10: InsertNew
public int InsertNew(
Int64 ID,
String AdiNumber,
String VendorName,
String VendorNumber,
String VendorModel,
String PartNumber,
String Name,
String Url,
String AllowedToBuy,
String DangerousGoodsMessage,
String InventoryMessage,
String MarketingMessage,
decimal? MinQty,
String ModelNumber,
decimal? Price,
String ProductDescription,
String ProductImagePath,
String RecycleFee,
String SaleMessageIndicator,
String SaleType,
String ST,
String SMI,
String InventoryMessageCode,
String CatagoryID,
String SmallImage,
String BigImage,
bool IsUpdating,
int UpdateInterval,
DateTime LastUpdateDatetime
)
{
String @Query = "INSERT INTO ADIProduct1 WITH (ROWLOCK) (AdiNumber, VendorName, VendorNumber, VendorModel, PartNumber, Name, "
+ "Url, AllowedToBuy, DangerousGoodsMessage, InventoryMessage, MarketingMessage, MinQty, ModelNumber, Price, ProductDescription, "
+ "ProductImagePath, RecycleFee, SaleMessageIndicator, SaleType, ST, SMI, InventoryMessageCode, CatagoryID, SmallImage, BigImage, "
+ "IsUpdating, UpdateInterval, LastUpdateDatetime) "
+ "VALUES ( @AdiNumber, @VendorName, @VendorNumber, @VendorModel, @PartNumber, @Name, "
+ "@Url, @AllowedToBuy, @DangerousGoodsMessage, @InventoryMessage, @MarketingMessage, @MinQty, @ModelNumber, @Price, @ProductDescription, "
+ "@ProductImagePath, @RecycleFee, @SaleMessageIndicator, @SaleType, @ST, @SMI, @InventoryMessageCode, @CatagoryID, @SmallImage, @BigImage, "
+ "@IsUpdating, @UpdateInterval, @LastUpdateDatetime)";
SqlCeDataManager oDm = new SqlCeDataManager(this.ConnectionString, Query, true);
oDm.AddVarcharPara("AdiNumber", 4000, AdiNumber);
oDm.AddVarcharPara("VendorName", 4000, VendorName);
oDm.AddVarcharPara("VendorNumber", 4000, VendorNumber);
oDm.AddVarcharPara("VendorModel", 4000, VendorModel);
oDm.AddVarcharPara("PartNumber", 4000, PartNumber);
oDm.AddVarcharPara("Name", 4000, Name);
oDm.AddVarcharPara("Url", 4000, Url);
oDm.AddVarcharPara("AllowedToBuy", 4000, AllowedToBuy);
oDm.AddVarcharPara("DangerousGoodsMessage", 4000, DangerousGoodsMessage);
oDm.AddVarcharPara("InventoryMessage", 4000, InventoryMessage);
oDm.AddVarcharPara("MarketingMessage", 4000, MarketingMessage);
oDm.AddDecimalPara("MinQty", 2, 10, MinQty);
oDm.AddVarcharPara("ModelNumber", 4000, ModelNumber);
oDm.AddDecimalPara("Price", 2, 10, Price);
oDm.AddVarcharPara("ProductDescription", 4000, ProductDescription);
oDm.AddVarcharPara("ProductImagePath", 4000, ProductImagePath);
oDm.AddVarcharPara("RecycleFee", 4000, RecycleFee);
oDm.AddVarcharPara("SaleMessageIndicator", 4000, SaleMessageIndicator);
oDm.AddVarcharPara("SaleType", 4000, SaleType);
oDm.AddVarcharPara("ST", 4000, ST);
oDm.AddVarcharPara("SMI", 4000, SMI);
oDm.AddVarcharPara("InventoryMessageCode", 4000, InventoryMessageCode);
oDm.AddVarcharPara("CatagoryID", 4000, CatagoryID);
oDm.AddVarcharPara("SmallImage", 4000, SmallImage);
oDm.AddVarcharPara("BigImage", 4000, BigImage);
oDm.AddBoolPara("IsUpdating", IsUpdating);
oDm.AddIntegerPara("UpdateInterval", UpdateInterval);
oDm.AddDateTimePara("LastUpdateDatetime", LastUpdateDatetime);
return oDm.RunActionQuery();
}
示例11: Update
public int Update(String AdiNumber, String id, String dc, String region, String storeName, String address1, String address2, String address3,
String country, String city, String state, String stateName, String zip, String phone, String fax, float? lat, float? lon, String inventory,
String manager, String responseCode, String responseMessage, Boolean IsHub)
{
String Query = "UPDATE ADIInventory SET dc = @dc ,region = @region ,storeName = @storeName ,address1 = @address1 ,address2 = @address2 ,address3 = @address3 "
+ ",country = @country ,city = @city ,state = @state ,stateName = @stateName ,zip = @zip ,phone = @phone ,fax = @fax ,lat = @lat ,lon = @lon "
+ ",inventory = @inventory ,manager = @manager ,responseCode = @responseCode ,responseMessage = @responseMessage ,IsHub = @IsHub "
+ ",LastUpdate = @LastUpdate WHERE AdiNumber = @AdiNumber AND id = @id";
SqlCeDataManager oDm = new SqlCeDataManager(ConnectionString, Query, true);
oDm.AddVarcharPara("AdiNumber", 4000, AdiNumber);
oDm.AddVarcharPara("id", 4000, id);
oDm.AddVarcharPara("dc", 4000, dc);
oDm.AddVarcharPara("region", 4000, region);
oDm.AddVarcharPara("storeName", 4000, storeName);
oDm.AddVarcharPara("address1", 4000, address1);
oDm.AddVarcharPara("address2", 4000, address2);
oDm.AddVarcharPara("address3", 4000, address3);
oDm.AddVarcharPara("country", 4000, country);
oDm.AddVarcharPara("city", 4000, city);
oDm.AddVarcharPara("state", 4000, state);
oDm.AddVarcharPara("stateName", 4000, stateName);
oDm.AddVarcharPara("zip", 4000, zip);
oDm.AddVarcharPara("phone", 4000, phone);
oDm.AddVarcharPara("fax", 4000, fax);
oDm.AddFloatPara("lat", lat);
oDm.AddFloatPara("lon", lon);
oDm.AddVarcharPara("inventory", 4000, inventory);
oDm.AddVarcharPara("manager", 4000, manager);
oDm.AddVarcharPara("responseCode", 4000, responseCode);
oDm.AddVarcharPara("responseMessage", 4000, responseMessage);
oDm.AddBoolPara("IsHub", IsHub);
oDm.AddDateTimePara("LastUpdate", DateTime.Now);
return oDm.RunActionQuery();
}
示例12: Insert
public int Insert(String AdiNumber, String id, String dc, String region, String storeName, String address1, String address2, String address3
, String country, String city, String state, String stateName, String zip, String phone, String fax, float? lat, float? lon, String inventory
, String manager, String responseCode, String responseMessage, Boolean IsHub)
{
String Query = "INSERT INTO ADIInventory (AdiNumber, id ,dc ,region ,storeName ,address1 ,address2 ,address3 ,country ,city ,state ,stateName ,zip ,phone ,fax ,lat ,lon ,inventory ,manager ,responseCode ,responseMessage ,IsHub, LastUpdate) "
+ "VALUES (@AdiNumber, @id ,@dc ,@region ,@storeName ,@address1 ,@address2 ,@address3 ,@country ,@city ,@state ,@stateName ,@zip ,@phone ,@fax ,@lat ,@lon ,@inventory ,@manager ,@responseCode ,@responseMessage ,@IsHub, @LastUpdate)";
SqlCeDataManager oDm = new SqlCeDataManager(ConnectionString, Query, true);
oDm.AddVarcharPara("AdiNumber", 4000, AdiNumber);
oDm.AddVarcharPara("id", 4000, id);
oDm.AddVarcharPara("dc", 4000, dc);
oDm.AddVarcharPara("region", 4000, region);
oDm.AddVarcharPara("storeName", 4000, storeName);
oDm.AddVarcharPara("address1", 4000, address1);
oDm.AddVarcharPara("address2", 4000, address2);
oDm.AddVarcharPara("address3", 4000, address3);
oDm.AddVarcharPara("country", 4000, country);
oDm.AddVarcharPara("city", 4000, city);
oDm.AddVarcharPara("state", 4000, state);
oDm.AddVarcharPara("stateName", 4000, stateName);
oDm.AddVarcharPara("zip", 4000, zip);
oDm.AddVarcharPara("phone", 4000, phone);
oDm.AddVarcharPara("fax", 4000, fax);
oDm.AddFloatPara("lat", lat);
oDm.AddFloatPara("lon", lon);
oDm.AddVarcharPara("inventory", 4000, inventory);
oDm.AddVarcharPara("manager", 4000, manager);
oDm.AddVarcharPara("responseCode", 4000, responseCode);
oDm.AddVarcharPara("responseMessage", 4000, responseMessage);
oDm.AddBoolPara("IsHub", IsHub);
oDm.AddDateTimePara("LastUpdate", DateTime.Now);
return oDm.RunActionQuery();
}