public GameData() { MongoConnection mongo = new MongoConnection(); this.db = mongo.MongoDBase; }//constructor
public static TDataType Read <TDataType>(MongoConnection connection, string id) where TDataType : AbstractData { return(Read <TDataType>(connection, ObjectId.Parse(id))); }
public AdministratorData() { MongoConnection mongo = new MongoConnection(); this.mongoDataB = mongo.MongoDBase; }//constructor vacio