16 lines
350 B
C#
16 lines
350 B
C#
using MongoDB.Driver;
|
|
|
|
namespace ET.Server
|
|
{
|
|
/// <summary>
|
|
/// 用来缓存数据
|
|
/// </summary>
|
|
[ChildOf(typeof(DBManagerComponent))]
|
|
public class DBComponent: Entity, IAwake<string, string>
|
|
{
|
|
public const int TaskCount = 32;
|
|
|
|
public MongoClient mongoClient;
|
|
public IMongoDatabase database;
|
|
}
|
|
} |