當前位置: 首頁>>代碼示例>>C#>>正文


C# SqlCeDataManager.AddFloatPara方法代碼示例

本文整理匯總了C#中WebSpider.Data.DatabaseManager.SqlCeDataManager.AddFloatPara方法的典型用法代碼示例。如果您正苦於以下問題:C# SqlCeDataManager.AddFloatPara方法的具體用法?C# SqlCeDataManager.AddFloatPara怎麽用?C# SqlCeDataManager.AddFloatPara使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WebSpider.Data.DatabaseManager.SqlCeDataManager的用法示例。


在下文中一共展示了SqlCeDataManager.AddFloatPara方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: 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();
 }
開發者ID:riskypathak,項目名稱:WebSpider,代碼行數:34,代碼來源:ADIInventoryDetailsManager.cs

示例2: 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();
 }
開發者ID:riskypathak,項目名稱:WebSpider,代碼行數:32,代碼來源:ADIInventoryDetailsManager.cs


注:本文中的WebSpider.Data.DatabaseManager.SqlCeDataManager.AddFloatPara方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。