Stored proc return as ObjectResult<Nullable<int>> using Entity frame work and want to convert this to int type
or how to check this value with another integer value
Stored proc return as ObjectResult<Nullable<int>> using Entity frame work and want to convert this to int type
or how to check this value with another integer value
The easiest way:
Nullable<int> myValue = myDb.MY_STORED_PROCEDURE().FirstOrDefault();
int a = myValue.Value;