public static SoodaObject GetRefFieldValue(ref SoodaObject refCache, SoodaObject theObject, int tableNumber, int fieldOrdinal, SoodaTransaction tran, ISoodaObjectFactory factory) { if (refCache != null) return refCache; theObject.EnsureDataLoaded(tableNumber); if (theObject._fieldValues.IsNull(fieldOrdinal)) return null; refCache = factory.GetRef(tran, theObject._fieldValues.GetBoxedFieldValue(fieldOrdinal)); return refCache; }
public static SoodaObject GetRefFieldValue(ref SoodaObject refCache, SoodaObject theObject, int tableNumber, int fieldOrdinal, SoodaTransaction tran, ISoodaObjectFactory factory) { if (refCache != null) { return(refCache); } theObject.EnsureDataLoaded(tableNumber); if (theObject._fieldValues.IsNull(fieldOrdinal)) { return(null); } refCache = factory.GetRef(tran, theObject._fieldValues.GetBoxedFieldValue(fieldOrdinal)); return(refCache); }
public static object GetBoxedFieldValue(SoodaObject theObject, int tableNumber, int fieldOrdinal) { theObject.EnsureDataLoaded(tableNumber); return theObject._fieldValues.GetBoxedFieldValue(fieldOrdinal); }
public static bool IsFieldNull(SoodaObject theObject, int tableNumber, int fieldOrdinal) { theObject.EnsureDataLoaded(tableNumber); return theObject._fieldValues.IsNull(fieldOrdinal); }
public static SoodaObjectFieldValues GetFieldValuesForRead(SoodaObject t, int tableNumber) { t.EnsureDataLoaded(tableNumber); return t._fieldValues; }
public static object GetBoxedFieldValue(SoodaObject theObject, int tableNumber, int fieldOrdinal) { theObject.EnsureDataLoaded(tableNumber); return(theObject._fieldValues.GetBoxedFieldValue(fieldOrdinal)); }
public static bool IsFieldNull(SoodaObject theObject, int tableNumber, int fieldOrdinal) { theObject.EnsureDataLoaded(tableNumber); return(theObject._fieldValues.IsNull(fieldOrdinal)); }
public static SoodaObjectFieldValues GetFieldValuesForRead(SoodaObject t, int tableNumber) { t.EnsureDataLoaded(tableNumber); return(t._fieldValues); }