本文整理汇总了C#中SqlCeCommand.AddParameter方法的典型用法代码示例。如果您正苦于以下问题:C# SqlCeCommand.AddParameter方法的具体用法?C# SqlCeCommand.AddParameter怎么用?C# SqlCeCommand.AddParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SqlCeCommand
的用法示例。
在下文中一共展示了SqlCeCommand.AddParameter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addDefaultParameters
private void addDefaultParameters(SqlCeCommand query, DataRow row)
{
query.AddParameter(SYNCREF_NAME, row[SYNCREF_NAME]);
query.AddParameter("BarCode", row["Barcode"]);
query.AddParameter("DateOfActuality", StringParser.ParseDateTime(row["DateOfActuality"]));
query.AddParameter("DrawdownDate", StringParser.ParseDateTime(row["DrawdownDate"]));
query.AddParameter("DateOfWarrantyEnd", StringParser.ParseDateTime(row["DateOfWarrantyEnd"]));
query.AddParameter("Date", StringParser.ParseDateTime(row["Date"]));
query.AddParameter("LastModified", StringParser.ParseDateTime(row["LastModified"]));
query.AddParameter("IsSynced", true);
query.AddParameter("Description", string.Empty);
query.AddParameter("HoursOfWork", Convert.ToDouble(row["HoursOfWork"]));
query.AddParameter("Marking", row["Marking"] ?? string.Empty);
query.AddParameter("Model", CatalogHelper.GetModelId<Models>(row["Model"]));
query.AddParameter("Party", CatalogHelper.GetModelId<Party>(row["Party"]));
query.AddParameter("Status", row["Status"]);
query.AddParameter("TypeOfWarrantly", row["TypeOfWarrantly"]);
query.AddParameter("Location", CatalogHelper.GetModelId<Contractors>(row["Location"]));
query.AddParameter("Posted", Convert.ToBoolean(row["Posted"]));
query.AddParameter("Number", Convert.ToInt32(row["Number"]));
query.AddParameter("Responsible", Convert.ToInt64(row["Responsible"]));
query.AddParameter("MarkForDeleting", row["MarkForDeleting"]);
}
示例2: addCaseParameters
private void addCaseParameters(SqlCeCommand query, DataRow row)
{
query.AddParameter("ElectronicUnit", BarcodeWorker.GetIdByRef(typeof(ElectronicUnits), row["ElectronicUnit"] as string));
query.AddParameter("Lamp", BarcodeWorker.GetIdByRef(typeof(db.Lamps), row["Lamp"] as string));
query.AddParameter("Map", CatalogHelper.GetModelId<Maps>(row["Map"]));
query.AddParameter("Position", Convert.ToInt32(row["Position"]));
query.AddParameter("Register", Convert.ToInt32(row["Register"]));
}