private static IEnumerable <MetadataReference> GetReferences(string entityFrameworkCoreVersion, string oracleVersion) =>
 Enumerable.Empty <MetadataReference>()
 .Concat(MetadataReferenceFacade.SystemData)
 .Concat(MetadataReferenceFacade.SystemComponentModelPrimitives)
 .Concat(NuGetMetadataReference.MicrosoftEntityFrameworkCore(entityFrameworkCoreVersion))
 .Concat(NuGetMetadataReference.MicrosoftEntityFrameworkCoreSqliteCore(entityFrameworkCoreVersion))
 .Concat(NuGetMetadataReference.MicrosoftEntityFrameworkCoreSqlServer(entityFrameworkCoreVersion))
 .Concat(NuGetMetadataReference.OracleEntityFrameworkCore(oracleVersion))
 .Concat(NuGetMetadataReference.MySqlDataEntityFrameworkCore())
 .Concat(NuGetMetadataReference.NpgsqlEntityFrameworkCorePostgreSQL(entityFrameworkCoreVersion));
예제 #2
0
 private static IEnumerable <MetadataReference> GetEntityFrameworkCoreReferences(string entityFrameworkVersion) =>
 Enumerable.Empty <MetadataReference>()
 .Concat(NetStandardMetadataReference.Netstandard)
 .Concat(NuGetMetadataReference.MicrosoftEntityFrameworkCoreSqlServer(entityFrameworkVersion))
 .Concat(NuGetMetadataReference.MicrosoftEntityFrameworkCoreRelational(entityFrameworkVersion));