コード例 #1
0
        public async Task <T> GetFirstOrDefaultAsync <T>(object conditions)
        {
            SetSimpleCRUD();

            using (var conn = new SqlConnection(_connectionString))
            {
                conn.Open();
                var ret = await _simpleCRUD.GetFirstOrDefaultAsync <T>(conn, conditions);

                conn.Close();
                return(ret);
            }
        }