Пример #1
0
        private static System.Collections.Specialized.NameValueCollection CheckEntityUpdateField(CurrentValueRecord entry)
        {
            System.Collections.Specialized.NameValueCollection returnResult = new System.Collections.Specialized.NameValueCollection(4);
              returnResult.Add("creator_id", "false");
              returnResult.Add("created_at", "false");
              returnResult.Add("updater_id", "false");
              returnResult.Add("updated_at", "false");

              foreach (var field in entry.DataRecordInfo.FieldMetadata)
              {
              switch (field.FieldType.Name)
              {
                  case "creator_id":
                  case "created_at":
                  case "updater_id":
                  case "updated_at":
                      returnResult[field.FieldType.Name] = "true";
                      break;
              }
              }

              return returnResult;
        }
            internal ServerGenSimpleValue(PropagatorFlags flags, object value, CurrentValueRecord record, int recordOrdinal)
                : base(flags, value)
            {
                Debug.Assert(null != record);

                m_record = record;
                m_recordOrdinal = recordOrdinal;
            }
 internal static PropagatorResult CreateServerGenSimpleValue(PropagatorFlags flags, object value, CurrentValueRecord record, int recordOrdinal)
 {
     return new ServerGenSimpleValue(flags, value, record, recordOrdinal);
 }