override internal void CopyFrom(SitkaClient.Entity e) { base.CopyFrom(e); this.Kind = e.Kind; // Copy properties foreach (SitkaClient.ArrayOfKeyValueOfstringanyTypeKeyValueOfstringanyType a in e.Properties) { this.Properties.Add(a.Key, a.Value); } }
override internal void CopyTo(SitkaClient.Entity e) { base.CopyTo(e); e.Kind = this.Kind; // Copy properties SitkaClient.ArrayOfKeyValueOfstringanyTypeKeyValueOfstringanyType[] array = new SitkaClient.ArrayOfKeyValueOfstringanyTypeKeyValueOfstringanyType[_properties.Count]; int count = 0; foreach (string key in _properties.Keys) { SitkaClient.ArrayOfKeyValueOfstringanyTypeKeyValueOfstringanyType a = new SitkaClient.ArrayOfKeyValueOfstringanyTypeKeyValueOfstringanyType(); a.Key = key; a.Value = _properties[key]; array[count++] = a; } e.Properties = array; }
static internal Container Create(Connection connection, SitkaClient.Entity sitkaContainer) { Container newContainer = new Container(); newContainer.CopyFrom(sitkaContainer); newContainer.connection = connection; return newContainer; }
internal void Delete(SitkaClient.Scope scope) { service.Delete(scope); }
internal SitkaClient.Entity[] Query(SitkaClient.Scope scope, string query) { return service.Query(scope, query); }
internal SitkaClient.Scope Create(SitkaClient.Scope scope, SitkaClient.Entity entity) { return service.Create(scope, entity); }
internal virtual void CopyTo(SitkaClient.Entity e) { e.Id = this.idField; e.VersionSpecified = this.versionFieldSpecified; e.Version = this.versionField; }
internal virtual void CopyFrom(SitkaClient.Entity e) { this.idField = e.Id; this.versionField = e.Version; this.versionFieldSpecified = e.VersionSpecified; }