This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo openssl pkcs12 -export -in /etc/letsencrypt/live/domain.com/fullchain.pem -inkey /etc/letsencrypt/live/domain.com/privkey.pem -out domain.com.pfx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static ISessionFactory CreateSessionFactory() | |
{ | |
var rawConfig = new NHibernate.Cfg.Configuration(); | |
rawConfig.SetNamingStrategy(new PostgreSqlNamingStrategy()); | |
return Fluently.Configure(rawConfig) | |
.Database(PostgreSQLConfiguration.Standard | |
.ConnectionString("<connection string>") | |
.Dialect<PostgreSQL82Dialect>().ShowSql()) | |
.Mappings(m => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PostgresNamingStrategy : INamingStrategy | |
{ | |
public string ClassToTableName(string className) | |
{ | |
return DoubleQuote(className); | |
} | |
public string PropertyToColumnName(string propertyName) | |
{ | |
return DoubleQuote(propertyName); |