I am trying to return a value using the new FromSql
command in Entity Framework 7. My stored procedure returns a value of 0 if all goes well and 1 if an error occurs.
Using FromSql
with DbSet
we can for example do
_dbContext.ExampleEntity.FromSql('someSproc', 'param')
How will you get the scalar return value of 0 or 1 from this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…