- Speed up
- Using case in no save, update
- Only using in list show
Sample
1 2 3 4 5 6 7 8 |
using (var ctx = new REG_RULEEntities()) { var rule_number = ctx.RULE_NUMBER.AsNoTracking() .Where(s => s.RULE_NUM == RULE_NUM) .FirstOrDefault(); } |