using ET; #if !SERVER using ET; #endif using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ET { public static class DataTableHelper { public static T Get(long id) where T : class { T ret = ConfigComponent.Instance.Get(id); if (ret == null) { #if !UNITY if (AppConfig.inst.isTest) Log.Error($"{typeof (T).Name} == null where Id = {id}"); else #endif Log.Error($"{typeof (T).Name} == null where Id = {id}"); } return ret; } public static T Get(int id) where T : class { return Get((long) id); } public static IEnumerable GetAll() where T : class { return ConfigComponent.Instance.GetAll(); } } }