|
@@ -18,7 +18,7 @@ namespace ET.Server
|
|
|
|
|
|
|
|
private static IMongoCollection<T> GetCollection<T>(this DBComponent self, string collection = null)
|
|
private static IMongoCollection<T> GetCollection<T>(this DBComponent self, string collection = null)
|
|
|
{
|
|
{
|
|
|
- return self.database.GetCollection<T>(collection ?? typeof (T).Name);
|
|
|
|
|
|
|
+ return self.database.GetCollection<T>(collection ?? typeof (T).FullName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private static IMongoCollection<Entity> GetCollection(this DBComponent self, string name)
|
|
private static IMongoCollection<Entity> GetCollection(this DBComponent self, string name)
|
|
@@ -113,7 +113,7 @@ namespace ET.Server
|
|
|
{
|
|
{
|
|
|
if (collection == null)
|
|
if (collection == null)
|
|
|
{
|
|
{
|
|
|
- collection = typeof (T).Name;
|
|
|
|
|
|
|
+ collection = typeof (T).FullName;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
using (await self.Fiber().CoroutineLockComponent.Wait(CoroutineLockType.DB, RandomGenerator.RandInt64() % DBComponent.TaskCount))
|
|
using (await self.Fiber().CoroutineLockComponent.Wait(CoroutineLockType.DB, RandomGenerator.RandInt64() % DBComponent.TaskCount))
|
|
@@ -130,7 +130,7 @@ namespace ET.Server
|
|
|
{
|
|
{
|
|
|
if (entity == null)
|
|
if (entity == null)
|
|
|
{
|
|
{
|
|
|
- Log.Error($"save entity is null: {typeof (T).Name}");
|
|
|
|
|
|
|
+ Log.Error($"save entity is null: {typeof (T).FullName}");
|
|
|
|
|
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -150,7 +150,7 @@ namespace ET.Server
|
|
|
{
|
|
{
|
|
|
if (entity == null)
|
|
if (entity == null)
|
|
|
{
|
|
{
|
|
|
- Log.Error($"save entity is null: {typeof (T).Name}");
|
|
|
|
|
|
|
+ Log.Error($"save entity is null: {typeof (T).FullName}");
|
|
|
|
|
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|