Galen.Ci.EntityFramework.DbDeploymentManager.GetTargetAssemblyContextKeySchema C# (CSharp) Method

GetTargetAssemblyContextKeySchema() private method

private GetTargetAssemblyContextKeySchema ( ) : ContextKeySchemaInfo
return 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);
        }