Ejemplo n.º 1
0
 /// <summary> Returns true if the original value for the field with the fieldIndex passed in, read from the persistent storage was NULL, false otherwise.
 /// Should not be used for testing if the current value is NULL, use <see cref="TestCurrentFieldValueForNull"/> for that.</summary>
 /// <param name="fieldIndex">Index of the field to test if that field was NULL in the persistent storage</param>
 /// <returns>true if the field with the passed in index was NULL in the persistent storage, false otherwise</returns>
 public bool TestOriginalFieldValueForNull(MLokasiFieldIndex fieldIndex)
 {
     return base.Fields[(int)fieldIndex].IsNull;
 }
Ejemplo n.º 2
0
 /// <summary>Creates a new IEntityField instance for usage in the EntityFields object for the MLokasiEntity.  Which EntityField is created is specified by fieldIndex</summary>
 /// <param name="fieldIndex">The field which IEntityField instance should be created</param>
 /// <returns>The IEntityField instance for the field specified in fieldIndex</returns>
 public static IEntityField Create(MLokasiFieldIndex fieldIndex)
 {
     IFieldInfo info = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("MLokasiEntity", (int)fieldIndex);
     return new EntityField(info, PersistenceInfoProviderSingleton.GetInstance().GetFieldPersistenceInfo(info.ContainingObjectName, info.Name));
 }
Ejemplo n.º 3
0
 /// <summary>Returns true if the current value for the field with the fieldIndex passed in represents null/not defined, false otherwise.
 /// Should not be used for testing if the original value (read from the db) is NULL</summary>
 /// <param name="fieldIndex">Index of the field to test if its currentvalue is null/undefined</param>
 /// <returns>true if the field's value isn't defined yet, false otherwise</returns>
 public bool TestCurrentFieldValueForNull(MLokasiFieldIndex fieldIndex)
 {
     return base.CheckIfCurrentFieldValueIsNull((int)fieldIndex);
 }