本文整理汇总了C#中db_SeguimientoProtocolo_r2Entities.ExecuteStoreCommand方法的典型用法代码示例。如果您正苦于以下问题:C# db_SeguimientoProtocolo_r2Entities.ExecuteStoreCommand方法的具体用法?C# db_SeguimientoProtocolo_r2Entities.ExecuteStoreCommand怎么用?C# db_SeguimientoProtocolo_r2Entities.ExecuteStoreCommand使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类db_SeguimientoProtocolo_r2Entities
的用法示例。
在下文中一共展示了db_SeguimientoProtocolo_r2Entities.ExecuteStoreCommand方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExecuteSqlString
public static void ExecuteSqlString(object sqlStmt)
{
string sSqlStmt = (string)sqlStmt;
using (var entity = new db_SeguimientoProtocolo_r2Entities())
{
entity.ExecuteStoreCommand(sSqlStmt);
}
}
示例2: log
public void log(string msg, string where)
{
try
{
using (var entity = new db_SeguimientoProtocolo_r2Entities())
{
string sqlExists = " if object_id('templog','u') is null begin create table templog (id int identity(1,1) , msg nvarchar(max), t datetime) end";
entity.ExecuteStoreCommand(sqlExists);
string sqlInsert = "insert into templog(msg,t) select '" + where + " _ [" + msg + "]',getdate()";
entity.ExecuteStoreCommand(sqlInsert);
}
}
catch (Exception)
{
;
}
}
示例3: PrepareBulkUpsertUploaded
public long PrepareBulkUpsertUploaded()
{
long session = 0;
using (var entity = new db_SeguimientoProtocolo_r2Entities())
{
session = (new UNID()).getNewUNID();
string sqlCmd = "select TOP 1 * into " + this.GetTmpUploadedTable(session) + " from CI_REGISTRO; TRUNCATE TABLE " + this.GetTmpUploadedTable(session);
entity.ExecuteStoreCommand(sqlCmd);
}
return session;
}