예제 #1
0
        public static async ETVoid 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);
        }
예제 #2
0
        public static async ETTask AddGamerToDB(DBComponent db, Gamer gamer)
        {
            await db.Save(gamer);

            Log.Info($"ÐÂÔöÍæ¼Ò£º{gamer.Namer}¡£");
        }