Exemplo n.º 1
0
        public static async ETTask SaveNotWait <T>(this DBComponent self, T entity, long taskId = 0, string collection = null) where T : Entity
        {
            if (taskId == 0)
            {
                await self.Save(entity, collection);

                return;
            }

            await self.Save(taskId, entity, collection);
        }
Exemplo n.º 2
0
        public static async ETTask AddPlayerToDB(DBComponent db, DPlayer player)
        {
            await db.Save(player);

            Log.Info($"ÐÂÔöÕ˺ţº{player.Account}£¬ÃÜÂ룺{player.PassWord}¡£");
        }