I have created an .EDMX file from my database using Entity Framework 6.1.3. Now my code is not compiling with error:
Cannot convert lambda expression to type 'string' because it is not a delegate type.
FEED_DETAIL is not compiling as I have in MASTER_FEED class as:
public virtual ICollection<FEED_DETAIL> FEED_DETAIL { get; set; }
public MASTER_FEED GetMasterFeed(string strSnapshotId)
{
IList<MASTER_FEED> data=_objDbContext.MASTER_FEED.Include(rw =>rw.FEED_DETAIL).Where(x => x.MAST_SNAPSHOT_RECORD_ID.Equals(strSnapshotId));
return null;
}
Any help please.
GetMasterFeedmethod. not it ?using System.Data.Entity;