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); }
public static async ETTask AddPlayerToDB(DBComponent db, DPlayer player) { await db.Save(player); Log.Info($"ÐÂÔöÕ˺ţº{player.Account}£¬ÃÜÂ룺{player.PassWord}¡£"); }