示例#1
0
        public Account GetAccountById(int Id)
        {
            string sql = @"select * from Account where Id = " + Id;

            return(ReadData.ToObject <Account>(SqlDbHelper.GetDataTable(sql).Rows[0]));
        }
示例#2
0
        public List <Type> GetAllType()
        {
            string sql = "select * from [Types]";

            return(ReadData.ToList <Type>(SqlDbHelper.GetDataTable(sql)));
        }