Galen.Ci.EntityFramework.DbDeploymentManager.GetTargetAssemblyContextKeySchema C# (CSharp) Метод

GetTargetAssemblyContextKeySchema() приватный Метод

private GetTargetAssemblyContextKeySchema ( ) : ContextKeySchemaInfo
Результат ContextKeySchemaInfo
        private ContextKeySchemaInfo GetTargetAssemblyContextKeySchema()
        {
            var configurationTypeForContext =
                from dt in TargetAssembly.DefinedTypes
                let t = dt.AsType()
                where
                    t.IsSubclassOf(typeof(DbMigrationsConfiguration)) &&
                    !dt.IsAbstract &&
                    (dt.GenericTypeArguments.Contains(InitializerInfo.ContextType) ||
                     t.BaseType.GenericTypeArguments.Contains(InitializerInfo.ContextType))
                select dt;

            var configurationType = configurationTypeForContext.Single();
            return GetContextKeySchema(TargetAssembly, configurationType.FullName);
        }