Passing a constant value to a stored procedure mapping in Entity Framework -


i'm working on creating entity framework model our database tables, , part, things going pretty well. however, i'm running bit of issue mapping stored procedures. see, homebuilt orm our company has been using tends use 1 sproc inserting , updating, , differentiats operations passing bit valued parameter called @isinsert (i know, don't me started). entity framework seems expect separate sprocs inserting , updating, figure have tell ef "pass true parameter when you're using insert, false if it's update". however, @ least according designer ui, doesn't seem give me option mapping other fields on entity object. there way pass constant value (boolean true or false) sproc mapping in ef4?

your best bet may use context.executestorequery(query) , keep how before.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -