Ejemplo n.º 1
0
        public virtual Task <bool> DeleteAsync(Guid Id)
        {
            var sqlHelper = new SqlDbConnectionHelper();
            var sqltext   = sqlHelper.GetDeleteByIdText <TEntity>(Id);
            var result    = ExecuteNonQuery(sqltext);

            return(Task.FromResult(result != 0));
        }
Ejemplo n.º 2
0
 public BaseRepository(string connectionString)
 {
     this.ConnectionString = connectionString;
     this.SqlHelper        = new SqlDbConnectionHelper();
     //CreateTables();
 }