Esempio n. 1
0
 public static Int32 GetRepeatCount(String requestName)
 {
     using (var dc = new AcctgDataContext())
     {
         return GetRepeatCount(dc, requestName);
     }
 }
Esempio n. 2
0
 public static Int32 GetRepeatCount(AcctgDataContext dc, String requestName)
 {
     var el =
            from o in dc.RequestRepeatCounts
            where o.RequestName == requestName
            select o;
     try
     {
         return el.First().RepeatCount;
     }
     catch
     {
         return 0;
     }
 }