Exemple #1
0
        public static List <T> FetchManyToOne <T, T1, T2, T3>(this IDatabase db, Func <T, object> key, string sql, object param = null)
        {
            var relator = new Relator();

            return(db.Query <T, T1, T2, T3, T>((a, b, c, d) => relator.ManyToOne(a, b, c, d, key), sql, param).ToList());
        }
Exemple #2
0
        public static List <T> FetchOneToMany <T, T1>(this IDatabase db, Func <T, object> key, Func <T1, object> manyKey, string sql, object param = null)
        {
            var relator = new Relator();

            return(db.Query <T, T1, T>((a, b) => relator.OneToMany(a, b, key, manyKey), sql, param).ToList());
        }