Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="appCode"></param>
 /// <returns></returns>
 public static IEnumerable <Db_AppLink> DbAppLink(this DbContextEx dbContext, string appCode)
 {
     return(dbContext.DbAppLink("SELECT * " +
                                "FROM UT_AppLink " +
                                "WHERE AppCode = @AppCode " +
                                "AND Active = 0 ",
                                new { AppCode = appCode }));
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="appCode"></param>
 /// <param name="mode"></param>
 /// <returns></returns>
 public static Db_AppLink DbAppLink(this DbContextEx dbContext, string appCode, string mode)
 {
     return(dbContext.DbAppLink("SELECT * " +
                                "FROM UT_AppLink " +
                                "WHERE AppCode = @AppCode " +
                                "AND Mode = @LinkMode " +
                                "AND Active = 0 ",
                                new
     {
         AppCode = appCode,
         LinkMode = mode
     }).FirstOrDefault());
 }