How to map custom SQL with EF code first Entity RRS feed

  • Question

  • I want to Map as custom SQL which will return same fields with tracking from Table as Follows

    Entity :

    public class Foo { public int Id{get;set;} public string Name{get;set;} }  

    Table Foo: Id int not Null, Name varchar(max)

    cutom Sql :

    Select Id , dbo.decript(Name) as Name from Foo 

    I am going to map Stored Procs for insert and update

    Friday, October 9, 2015 9:12 AM


All replies