MongoDBDriver/DatabaseJS.cs
/// <summary>
/// Stores a function in the database.
/// </summary>
Stores a function in the database.
Stores a function in the database .
public void Add (Document item){
            if(js.FindOne(new Document().Append("_id", item["_id"])) != null){
                throw new ArgumentException(String.Format("Function {0} already exists in the database.", item["_id"]));
            }
            js.Insert(item);
        }
public void Add ( Document item ) { if ( js . FindOne ( new Document ( ) . Append ( " " , item [ " " ] ) ) != null ) { throw new ArgumentException ( String . Format ( " " , item [ " " ] ) ) ; } js . Insert ( item ) ; }
Stores a function in the database.
Stores a function in the database .
item
Document