Ver Fonte

EntityDB没有用了,删除掉

tanghai há 8 anos atrás
pai
commit
687683f7f7

+ 3 - 0
Server/Model/Base/Object/EntityAttribute.cs

@@ -2,6 +2,9 @@
 
 namespace Model
 {
+	[BsonKnownTypes(typeof(Location))]
+	[BsonKnownTypes(typeof(Recharge))]
+	[BsonKnownTypes(typeof(RechargeRecord))]
 	public partial class Entity
 	{
 	}

+ 0 - 19
Server/Model/Entity/EntityDB.cs

@@ -1,19 +0,0 @@
-using MongoDB.Bson.Serialization.Attributes;
-
-namespace Model
-{
-	[BsonIgnoreExtraElements]
-	[BsonKnownTypes(typeof(RechargeRecord))]
-	[BsonKnownTypes(typeof(Recharge))]
-	[BsonKnownTypes(typeof(Location))]
-	public class EntityDB: Entity
-	{
-		protected EntityDB()
-		{
-		}
-
-		protected EntityDB(long id): base(id)
-		{
-		}
-	}
-}

+ 2 - 2
Server/Model/Entity/Http.cs

@@ -1,7 +1,7 @@
 namespace Model
 {
 	// 充值流水
-	public sealed class RechargeRecord : EntityDB
+	public sealed class RechargeRecord : Entity
 	{
 		// 充值玩家
 		public int PlayerNO { get; set; }
@@ -18,7 +18,7 @@
 	}
 
 	// 保存玩家充值记录, 每个玩家只有一条
-	public sealed class Recharge : EntityDB
+	public sealed class Recharge : Entity
 	{
 		public int CardNumber { get; set; }
 		

+ 1 - 1
Server/Model/Entity/Location.cs

@@ -1,6 +1,6 @@
 namespace Model
 {
-	public class Location: EntityDB
+	public class Location: Entity
 	{
 		public string Address;