Advertisement
Guest User

Use NHibernate together with Azure SQL Edge Docker container

a guest
Nov 28th, 2021
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. public class CustomMsSqlDataBaseSchema : MsSqlDataBaseSchema
  2. {
  3.     public CustomMsSqlDataBaseSchema(DbConnection connection) : base(connection)
  4.     {
  5.     }
  6.  
  7.     public override ISet<string> GetReservedWords()
  8.     {
  9.         return new HashSet<string>(StringComparer.OrdinalIgnoreCase);
  10.     }
  11. }
  12.  
  13.  
  14. public class EnhancedMsSql2008Dialect : MsSql2008Dialect
  15. {
  16.     public override IDataBaseSchema GetDataBaseSchema(DbConnection connection)
  17.     {
  18.         return new CustomMsSqlDataBaseSchema(connection);
  19.     }
  20. }
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement