add compile fixes from upstream changes

pull/131/head
Christopher Jolly 3 years ago
parent 1f35ab88fd
commit 7dd239bea8

@ -39,7 +39,7 @@ namespace EntityFrameworkCore.Jet.Metadata.Internal
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public override IEnumerable<IAnnotation> For(ITableIndex index)
public override IEnumerable<IAnnotation> For(ITableIndex index, bool designTime)
{
// Model validation ensures that these facets are the same on all mapped indexes
var modelIndex = index.MappedIndexes.First();
@ -67,7 +67,7 @@ namespace EntityFrameworkCore.Jet.Metadata.Internal
/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </summary>
public override IEnumerable<IAnnotation> For(IColumn column)
public override IEnumerable<IAnnotation> For(IColumn column, bool designTime)
{
var table = StoreObjectIdentifier.Table(column.Table.Name, column.Table.Schema);
var property = column.PropertyMappings.Where(

@ -17,8 +17,9 @@ namespace EntityFrameworkCore.Jet.Storage.Internal
[NotNull] DbTransaction transaction,
Guid transactionId,
[NotNull] IDiagnosticsLogger<DbLoggerCategory.Database.Transaction> logger,
bool transactionOwned)
: base(connection, transaction, transactionId, logger, transactionOwned)
bool transactionOwned,
ISqlGenerationHelper sqlGenerationHelper)
: base(connection, transaction, transactionId, logger, transactionOwned, sqlGenerationHelper)
{
}
@ -34,10 +35,6 @@ namespace EntityFrameworkCore.Jet.Storage.Internal
public override Task CreateSavepointAsync(string name, CancellationToken cancellationToken = new CancellationToken())
=> throw new NotSupportedException();
/// <inheritdoc />
protected override string GetCreateSavepointSql(string name)
=> throw new NotSupportedException();
/// <inheritdoc />
public override void RollbackToSavepoint(string name)
=> throw new NotSupportedException();
@ -46,10 +43,6 @@ namespace EntityFrameworkCore.Jet.Storage.Internal
public override Task RollbackToSavepointAsync(string name, CancellationToken cancellationToken = new CancellationToken())
=> throw new NotSupportedException();
/// <inheritdoc />
protected override string GetRollbackToSavepointSql(string name)
=> throw new NotSupportedException();
/// <inheritdoc />
public override void ReleaseSavepoint(string name)
=> throw new NotSupportedException();
@ -57,9 +50,5 @@ namespace EntityFrameworkCore.Jet.Storage.Internal
/// <inheritdoc />
public override Task ReleaseSavepointAsync(string name, CancellationToken cancellationToken = default)
=> throw new NotSupportedException();
/// <inheritdoc />
protected override string GetReleaseSavepointSql(string name)
=> throw new NotSupportedException();
}
}

@ -8,12 +8,27 @@ namespace EntityFrameworkCore.Jet.Storage.Internal
{
public class JetTransactionFactory : IRelationalTransactionFactory
{
/// <summary>
/// Initializes a new instance of the <see cref="RelationalTransactionFactory" /> class.
/// </summary>
/// <param name="dependencies">Parameter object containing dependencies for this service.</param>
public JetTransactionFactory(RelationalTransactionFactoryDependencies dependencies)
{
Dependencies = dependencies;
}
/// <summary>
/// Relational provider-specific dependencies for this service.
/// </summary>
protected virtual RelationalTransactionFactoryDependencies Dependencies { get; }
public virtual RelationalTransaction Create(
IRelationalConnection connection,
DbTransaction transaction,
Guid transactionId,
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction> logger,
bool transactionOwned)
=> new JetTransaction(connection, transaction, transactionId, logger, transactionOwned);
=> new JetTransaction(connection, transaction, transactionId, logger, transactionOwned,Dependencies.SqlGenerationHelper);
}
}
Loading…
Cancel
Save