Back to Devexpress

Session.GetObjectByKey Method

xpo-devexpress-dot-xpo-dot-session-dot-getobjectbykey.md

latest1.6 KB
Original Source

Session.GetObjectByKey Method

NameParametersDescription
GetObjectByKey(XPClassInfo, Object, Boolean)classInfo, id, alwaysGetFromDataStoreReturns the reloaded persistent object with the specified value of the key property from a data store.
GetObjectByKey(XPClassInfo, Object)classInfo, idReturns a persistent object with the specified value of the key property.
GetObjectByKey(Type, Object, Boolean)classType, id, alwaysGetFromDataStoreReturns the reloaded persistent object with the specified value of the key property from a data store.
GetObjectByKey(Type, Object)classType, idReturns the persistent object that has the specified value for its key property.
GetObjectByKey<ClassType>(Object, Boolean)id, alwaysGetFromDataStoreReturns a persistent object of the type designated by the specified generic type parameter, with the specified value for its key property.
GetObjectByKey<ClassType>(Object)idReturns a persistent object of the type designated by the specified generic type parameter, with the specified value for its key property.