示例#1
0
 public static List<ClienteDto> ObterClientes()
 {
     using (DBModel db = new DBModel())
     {
         return ClienteDto.ConverterLista(db.Cliente.ToList<Cliente>());
     }
 }
示例#2
0
 public static List <ClienteDto> ObterClientes()
 {
     using (DBModel db = new DBModel())
     {
         var result = db.Cliente.SqlQuery("Select * From Cliente").ToList <Cliente>();;
         return(ClienteDto.ConverterLista(result));
     }
 }