Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        static internal Container Create(Connection connection, SitkaClient.Entity sitkaContainer)
        {
            Container newContainer = new Container();
            newContainer.CopyFrom(sitkaContainer);
            newContainer.connection = connection;

            return newContainer;
        }
Ejemplo n.º 4
0
 internal void Delete(SitkaClient.Scope scope)
 {
     service.Delete(scope);
 }
Ejemplo n.º 5
0
 internal SitkaClient.Entity[] Query(SitkaClient.Scope scope, string query)
 {
     return service.Query(scope, query);
 }
Ejemplo n.º 6
0
 internal SitkaClient.Scope Create(SitkaClient.Scope scope, SitkaClient.Entity entity)
 {
     return service.Create(scope, entity);
 }
Ejemplo n.º 7
0
 internal virtual void CopyTo(SitkaClient.Entity e)
 {
     e.Id = this.idField;
     e.VersionSpecified = this.versionFieldSpecified;
     e.Version = this.versionField;
 }
Ejemplo n.º 8
0
 internal virtual void CopyFrom(SitkaClient.Entity e)
 {
     this.idField = e.Id;
     this.versionField = e.Version;
     this.versionFieldSpecified = e.VersionSpecified;
 }