예제 #1
0
        public static void UnSafeInit()
        {
            if (s_inited)
            {
                return;
            }
            var typeFinder = IocManager.Instance.Resolve <ITypeFinder>();

            var entityTypes = typeFinder.FindAllEntity();

            foreach (var type in entityTypes)
            {
                //缓存相关信息
                MappingResolver.CreateEntityMap(type);
            }
            s_inited = true;
        }