Hello Everyone,
1) After updating .EDMX fill in mvc4 by the way Entity Framework, this procedure name not getting like Model.SP_FinalExposureMonitor_Final_Result, model class. Why this?
2) After executing this procedure I want list of items, but now db.SP_FinalExposureMonitor(); return type is int
How can I return this procedure with list items?
- CREATE PROCEDURE SP_FinalExposureMonitor_Final
- @SortColumn varchar(100)
- AS
- BEGIN
- declare @dynamicSQL nvarchar(max) = '';
- select @dynamicSQL = 'select tempID,ProgramId,ChannelId,convert(date,Date_DL)asDate_DL,StartTime,EndTime,Viewers,
- Tx,TVR,CVR,DVR,
- Details_Id,
- MastersId,BrandsId,ItemsId,Note,PaidForOrProp,Verbal,Indexes,Seconds,
- GradesId,ChannelName,CountryName,WebSiteName,ProductionName,BrandName,ItemName,
- Product_company_id,CompanyName,ProductGroupsId,
- SectorsId,SubSectoresId,AgenciesId,GroupName,SectorName,SubsectoreName,
- AgencyName,agencyID,QualityGrade,CPH_DL,CPH_UN,Country_CPH,Country_UN,
- Web_CPH,Web_UN,
- AdFactor,Duration_Factor,DaypartName,DaypartId,DaypartFactor,CinemaFactor,DigitalFactor,MediaValue,ROW_NUMBER() over (order by '+ @SortColumn +')AS RowNum from MonitorExposureFinal2;'
- execute sp_executeSQL @dynamicSQL
- print @dynamicSQL
- END


Ramesh PalaniappanRank #370 · 6.8K reputationPosted Oct 25, 2016, 5:14 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Oct 21, 2016, 2:18 AM EDT
Esakki MuthuRank #5,293 · 304 reputationPosted Oct 24, 2016, 11:18 PM EDT
Salman BegRank #284 · 8.8K reputationPosted Oct 21, 2016, 7:06 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Oct 21, 2016, 9:55 PM EDT
Ramesh PalaniappanRank #370 · 6.8K reputationPosted Oct 24, 2016, 4:28 AM EDT
Ramesh PalaniappanRank #370 · 6.8K reputationPosted Oct 24, 2016, 4:31 AM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Oct 21, 2016, 5:51 AM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Oct 24, 2016, 5:39 AM EDT
Ramesh PalaniappanRank #370 · 6.8K reputationPosted Oct 24, 2016, 6:14 AM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Oct 24, 2016, 9:22 PM EDT