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
docker run -m=4g -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=1234@Abcd" -p 1433:1433 --name sql2 -h sql2 -d mcr.microsoft.com/mssql/server:2019-latest | |
docker exec -it sql2 "bash" | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "1234@Abcd" | |
sqlcmd -S 127.0.0.1,1434 -U SA -P "1234@Abcd" |
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
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=1234@Abcd" -p 1500:1433 --name sql1 -h sql1 -d mcr.microsoft.com/mssql/server:2019-latest | |
docker exec -it sql1 "bash" | |
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "1234@Abcd" |
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 Marten.StoreOptions BuildStoreOptions() | |
{ | |
var connectionString = Configuration.GetConnectionString("Marten"); | |
var options = new Marten.StoreOptions(); | |
options.Connection(connectionString); | |
options.AutoCreateSchemaObjects = AutoCreate.CreateOrUpdate; | |
return options; | |
} |
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 record OperationResult<TResult> | |
{ | |
public TResult? Response { get; private set; } | |
public bool Success { get; private set; } | |
public string? ErrorMessage { get; private set; } | |
public Exception? Exception { get; private set; } | |
public static OperationResult<TResult> BuildSuccess(TResult result) | |
{ |
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 record OperationResult<TResult> | |
{ | |
public TResult? Response { get; private set; } | |
public bool Success { get; private set; } | |
public string? ErrorMessage { get; private set; } | |
public Exception? Exception { get; private set; } | |
public static OperationResult<TResult> BuildSuccess(TResult result) | |
{ |
OlderNewer