Beispiel #1
0
        /// <summary>
        /// Serializes and inserts an object into the database.
        /// </summary>
        /// <param name="obj">The object to store</param>
        /// <returns>A GUID generated by the GuidProvider</returns>
        public Guid Insert(TGroup obj)
        {
            var guid = guidProvider();
            var data = serializer.Serialize(obj);

            storageEngine.Insert(guid, data);
            return(guid);
        }