Skip to content

Commit

Permalink
NotSupportedException
Browse files Browse the repository at this point in the history
  • Loading branch information
gliljas committed Jan 8, 2025
1 parent 64805c7 commit 0205ecc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/NHibernate/Driver/IDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ public interface IDriver
/// Create a <see cref="DbBatch"/>
/// </summary>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
DbBatch CreateBatch() => throw new NotImplementedException();
/// <exception cref="NotSupportedException"></exception>
DbBatch CreateBatch() => throw new NotSupportedException();

/// <summary>
/// Can this driver create <see cref="DbBatch"/>es?
/// </summary>
Expand All @@ -182,7 +182,7 @@ public interface IDriver
/// May be a no-op if the driver does not support preparing commands, or for any other reason.
/// </summary>
/// <param name="dbBatch">The batch.</param>
void PrepareBatch(DbBatch dbBatch) => throw new NotImplementedException();
void PrepareBatch(DbBatch dbBatch) { }

/// <summary>
/// Creates (clones) a <see cref="DbBatchCommand"/> from a <see cref="DbCommand"/>,
Expand All @@ -193,8 +193,8 @@ public interface IDriver
/// <param name="dbBatch"></param>
/// <param name="dbCommand"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
DbBatchCommand CreateDbBatchCommandFromDbCommand(DbBatch dbBatch, DbCommand dbCommand) => throw new NotImplementedException();
/// <exception cref="NotSupportedException"></exception>
DbBatchCommand CreateDbBatchCommandFromDbCommand(DbBatch dbBatch, DbCommand dbCommand) => throw new NotSupportedException();
#endif
}
}

0 comments on commit 0205ecc

Please sign in to comment.