Example #1
0
        public static Task <bool> ExistsAsync <T>(this AP.Database self, FSharpExpr <FSharpFunc <T, bool> > query)
        {
            var translated = ExpressionToSql.Translate(GetDialect(self).Quoter, query, false, ExtractAsyncPocoColumnNameFs,
                                                       EmptyCustomParameterValue, FSharpOption <Translator.ItemInCollectionImpl> .None);

            return(self.ExistsAsync <T>(translated.Item1, translated.Item2));
        }
Example #2
0
        public static Task <bool> ExistsAsync <T>(this AP.Database self, Expression <Func <T, bool> > query)
        {
            var translated = ExpressionToSql.Translate(GetDialect(self).Quoter, query, false, ExtractAsyncPocoColumnName);

            return(self.ExistsAsync <T>(translated.Item1, translated.Item2));
        }