Exemple #1
0
        string ISqlProvider.GetUniId(string name, TkDbContext context)
        {
            TkDebug.AssertArgumentNullOrEmpty(name, "name", this);
            TkDebug.AssertArgumentNull(context, "context", this);

            return(UniIdProc.Execute(name, context));
        }
Exemple #2
0
 public static string ExecuteProc(string name, TkDbContext context)
 {
     using (UniIdProc proc = new UniIdProc(context)
     {
         Name = name
     })
     {
         proc.Execute();
         return(proc.Value);
     }
 }
Exemple #3
0
 public static string ExecuteProcWithStep(string name, TkDbContext context)
 {
     using (UniIdProc proc = new UniIdProc(context)
     {
         Name = name,
         Step = context.ContextConfig.IdStep
     })
     {
         proc.Execute();
         return(proc.Value);
     }
 }