| 1. |
How Can We Fine-tune The Command Object When We Are Expecting A Single Row? |
|
Answer» Again, CommandBehaviour enumeration PROVIDES two values SINGLE Result and Single Row. If you are EXPECTING a single value then PASS “CommandBehaviour.SingleResult” and the query is optimized ACCORDINGLY, if you are expecting single row then pass “CommandBehaviour.SingleRow” and query is optimized according to single row. Again, CommandBehaviour enumeration provides two values Single Result and Single Row. If you are expecting a single value then pass “CommandBehaviour.SingleResult” and the query is optimized accordingly, if you are expecting single row then pass “CommandBehaviour.SingleRow” and query is optimized according to single row. |
|