示例#1
0
        private static Assembly OnCurrentDomainAssemblyResolve(
            object sender,
            ResolveEventArgs args)
        {
            string partialName = AssemblyHelper.GetPartialName(args.Name).ToLower();

            if (partialName == "entityframework" ||
                partialName == "system.data.sqlite" ||
                partialName == "system.data.sqlite.ef6")
            {
                string path =
                    FilePathUtils.FindFilePath($"Dll\\{partialName}.dll", false);
                return(Assembly.LoadFrom(path));
            }
            else
            {
                return(null);
            }
        }