| 1. |
How Can We Fine Tune The Command Object When We Are Expecting A Single Row ? |
|
Answer» Again CommandBehaviour enumeration provides TWO values SingleResult and SingleRow. 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 SingleResult and SingleRow. 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. |
|