InsertPost() public abstract method

Inserts a new Post into the data store specified by the provider.
public abstract InsertPost ( Post post ) : void
post Post /// The post to insert. ///
return void
Ejemplo n.º 1
0
        ///// <summary>
        ///// Returns the content of a post.
        ///// </summary>
        //public static string SelectPostContent(Guid id)
        //{
        //  LoadProviders();
        //  return _provider.SelectPostContent(id);
        //}

        /// <summary>
        /// Persists a new Post in the current provider.
        /// </summary>
        public static void InsertPost(Post post)
        {
            LoadProviders();
            _provider.InsertPost(post);
        }