Example #1
0
        private static EntityChange CreateTombstoneEntityFields(IEntitySync entity)
        {
            var fields = new EntityChange();

            fields.Add(EntityTombstone <EntitySync, IEntitySync> .IdColumnName, entity.Id);
            return(fields);
        }
Example #2
0
        private static EntityChange CreateEntityFields(IEntitySync entity)
        {
            var fields = new EntityChange();

            fields.EntityName       = EntitySync.TableName;
            fields.HasAutoIncrement = true;
            fields.Add(EntitySync.IdColumnName, entity.Id);
            fields.Add(EntitySync.ColumnNameCreatedAt, entity.CreatedAt);
            fields.Add(EntitySync.ColumnNameUpdatedAt, entity.UpdatedAt);
            fields.Add(EntitySync.ColumnNameLastSyncAt, entity.LastSyncAt);
            fields.Add(EntitySync.ColumnNameUniqueIdentifier, entity.UniqueIdentifier);
            fields.Add(EntitySync.ColumnNameStringField, entity.StringField);
            return(fields);
        }