string ISqlProvider.GetUniId(string name, TkDbContext context) { TkDebug.AssertArgumentNullOrEmpty(name, "name", this); TkDebug.AssertArgumentNull(context, "context", this); return(UniIdProc.Execute(name, context)); }
public static string ExecuteProc(string name, TkDbContext context) { using (UniIdProc proc = new UniIdProc(context) { Name = name }) { proc.Execute(); return(proc.Value); } }
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); } }