CREATE Procedure [dbo].[GetSood] @datefrom nvarchar(15), @dateto nvarchar(15) as SELECT Price,Numbers,PriceTotal FROM VW_Sale WHERE DateCreate>=@datefrom and DateCreate<=@dateto and IsSale=1 and PayType=2;
The data reader is incompatible with the specified 'AriaSalesmanagmentModel.VW_Sale'. A member of the type, 'ID', does not have a corresponding column in the data reader with the same name.
public List<dal.vw_sale> GetSood(string dateFrom, string dateTo) { DAL.AriaSalestEntities objAria = new AriaSalestEntities(); var sood = from s in objAria.GetSood(dateFrom, dateTo) select s; return sood.ToList(); }</dal.vw_sale>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)