Beispiel #1
0
        public InMemoryRecord Clone()
        {
            InMemoryRecord record = new InMemoryRecord(view)
            {
                Module   = Module,
                RecordId = RecordId
            };

            foreach (FieldValue value in Fields)
            {
                record.Fields.Add(value.Clone());
            }
            return(record);
        }
 public static InMemoryRecord[] SplitRecord(this InMemoryRecord record, DateTime splitDateTimeUtc)
 {
     throw new NotImplementedException();
 }
 public static bool IsConfirmed(this InMemoryRecord record)
 {
     return(record.GetFieldValue("Confirmed", false));
 }
 public static bool IsDeleted(this InMemoryRecord record)
 {
     return(record.GetFieldValue("Deleted", false));
 }
 public static int SaveTo(this InMemoryRecord record, SimpleDataWebServiceClient webServiceClient)
 {
     return(webServiceClient.AddExistingRecord(record));
 }
 public static InMemoryRecord MarkAsNew(this InMemoryRecord record)
 {
     record.RecordId = -1;
     return(record);
 }