Example #1
0
        /// <summary>
        /// Create a Dictionary from the object.
        /// </summary>
        /// <returns>Dictionary.</returns>
        public Dictionary <string, object> ToInsertDictionary()
        {
            Dictionary <string, object> ret = new Dictionary <string, object>();

            ret.Add("GUID", GUID);
            ret.Add("UserGuid", UserGuid);
            ret.Add("Name", Name);
            ret.Add("ObjectsDirectory", ObjectsDirectory);
            ret.Add("EnableAuditLogging", EnableAuditLogging.ToString());
            ret.Add("IsPublicRead", IsPublicRead.ToString());
            ret.Add("IsPublicWrite", IsPublicWrite.ToString());
            ret.Add("CreatedUtc", CreatedUtc);
            return(ret);
        }
Example #2
0
        internal Dictionary <string, object> ToInsertDictionary()
        {
            Dictionary <string, object> ret = new Dictionary <string, object>();

            ret.Add("guid", GUID);
            ret.Add("userguid", UserGUID);
            ret.Add("name", Name);
            ret.Add("objectsdirectory", ObjectsDirectory);
            ret.Add("enableauditlogging", EnableAuditLogging.ToString());
            ret.Add("ispublicread", IsPublicRead.ToString());
            ret.Add("ispublicwrite", IsPublicWrite.ToString());
            ret.Add("createdutc", CreatedUtc);
            return(ret);
        }