초기 커밋.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Driver;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LolDataRequestLib.ResponseData
|
||||
{
|
||||
internal abstract class AResponseData : IResponseData
|
||||
{
|
||||
|
||||
|
||||
protected MongoClient mDBClient = new MongoClient(DBDefine.MONGODB주소);
|
||||
|
||||
protected IMongoDatabase mEventDataBase = null;
|
||||
|
||||
public DataTable 디비데이터를데이터테이블로만듬() {
|
||||
|
||||
mEventDataBase = mDBClient.GetDatabase("datalol");
|
||||
|
||||
return buildDataForResponse(getDataFromMongo());
|
||||
|
||||
}
|
||||
|
||||
protected abstract BsonDocument getDataFromMongo();
|
||||
|
||||
protected abstract DataTable buildDataForResponse(BsonDocument recvDocument);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user