Difference between Get and Load

前端 未结 4 839
失恋的感觉
失恋的感觉 2021-02-01 02:11

What\'s the difference between Get(object id) and Load(object id)? The documentation pretty much reads the same. Also, if it matter

4条回答
  •  梦毁少年i
    2021-02-01 03:09

    Get will return Null if the object doesn't exist whereas Load will not return Null - it either returns an object or throws an exception.

提交回复
热议问题