/// <summary> /// Gets the fully qualified name of a type deriving from <see cref="DbContext" />. /// </summary> /// <param name="contextTypeName"> The name of the context type. If null, the single context type found in the assembly will be returned. </param> /// <returns> The context type found. </returns> public string GetContextType(string contextTypeName) { var runner = new GetContextTypeRunner { ContextTypeName = contextTypeName }; ConfigureRunner(runner); Run(runner); return((string)_appDomain.GetData("result")); }
/// <summary> /// Gets the fully qualified name of a type deriving from <see cref="DbContext" />. /// </summary> /// <param name="contextTypeName"> The name of the context type. If null, the single context type found in the assembly will be returned. </param> /// <returns> The context type found. </returns> public string GetContextType(string contextTypeName) { var runner = new GetContextTypeRunner { ContextTypeName = contextTypeName }; ConfigureRunner(runner); Run(runner); return (string)_appDomain.GetData("result"); }