示例#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);
            }
        }
示例#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;
        }
示例#3
0
        static internal Container Create(Connection connection, SitkaClient.Entity sitkaContainer)
        {
            Container newContainer = new Container();
            newContainer.CopyFrom(sitkaContainer);
            newContainer.connection = connection;

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