public void Save() { try { Update (); this._updatetimestamp = Date.CurrentDateTimeToTimestamp (); Hashtable item = new Hashtable (); item.Add ("id", this._id); item.Add ("createtimestamp", this._createtimestamp); item.Add ("updatetimestamp", this._updatetimestamp); item.Add ("type", this._type); item.Add ("path", this._path); item.Add ("mimetype", this._mimetype); item.Add ("size", this._size); item.Add ("description", this._description); item.Add ("copyright", this._copyright); Services.Datastore.Meta meta = new Services.Datastore.Meta (); meta.Add ("path", this._path); Services.Datastore.Set (DatastoreAisle, this._id.ToString (), SNDK.Convert.ToXmlDocument (item, this.GetType ().FullName.ToLower ()), meta); } catch (Exception exception) { // LOG: LogDebug.ExceptionUnknown Services.Logging.LogDebug (string.Format (Strings.LogDebug.ExceptionUnknown, "SORENTOLIB.MEDIA", exception.Message)); // EXCEPTION: Exception.MediaSave throw new Exception (string.Format (Strings.Exception.MediaSave, this._id)); } }
public void Save() { try { this._updatetimestamp = Date.CurrentDateTimeToTimestamp (); Hashtable item = new Hashtable (); item.Add ("id", this._id); item.Add ("createtimestamp", this._createtimestamp); item.Add ("updatetimestamp", this._updatetimestamp); item.Add ("type", this._type); item.Add ("name", this._name); item.Add ("status", this._status); item.Add ("scope", this._scope); Services.Datastore.Meta meta = new Services.Datastore.Meta (); meta.Add ("scope", this._scope); Services.Datastore.Set (DatastoreAisle, this._id.ToString (), SNDK.Convert.ToXmlDocument (item, "sorentolib.usergroup"), meta); } catch (Exception exception) { // Console.WriteLine (exception); // LOG: LogDebug.ExceptionUnknown Services.Logging.LogDebug (string.Format (Strings.LogDebug.ExceptionUnknown, "SORENTOLIB.USERGROUP", exception.Message)); // EXCEPTION: Exception.UsergroupSave throw new Exception (string.Format (Strings.Exception.UsergroupSave, this._id)); } }
public void Save() { try { this._updatetimestamp = Date.CurrentDateTimeToTimestamp (); Hashtable item = new Hashtable (); item.Add ("id", this._id); item.Add ("createtimestamp", this._createtimestamp); item.Add ("updatetimestamp", this._updatetimestamp); item.Add ("usergroupids", this._usergroupsasstring); item.Add ("username", this._username); item.Add ("password", this._password); item.Add ("realname", this._realname); item.Add ("email", this._email); item.Add ("status", this._status); item.Add ("scope", this._scope); Services.Datastore.Meta meta = new Services.Datastore.Meta (); meta.Add ("id", this._id); meta.Add ("username", this._username); meta.Add ("email", this._email); meta.Add ("scope", this._scope); //Services.Datastore.Set (DatastoreAisle, this._id.ToString (), SNDK.Convert.ToXmlDocument (item, this.GetType ().FullName.ToLower ()), meta); Services.Datastore.Set (DatastoreAisle, this._id.ToString (), SNDK.Convert.ToXmlDocument (item, "sorentolib.user"), meta); } catch (Exception exception) { // LOG: LogDebug.ExceptionUnknown Services.Logging.LogDebug (string.Format (Strings.LogDebug.ExceptionUnknown, "SORENTOLIB.USER", exception.Message)); // EXCEPTION: Exception.UserSave throw new Exception (string.Format (Strings.Exception.UserSave, this._id)); } }