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
version: "3.9" | |
name: common-services | |
services: | |
dbserver: | |
image: mcr.microsoft.com/mssql/server:2022-latest | |
container_name: mssql | |
ports: | |
- "1433:1433" | |
networks: |
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
internal readonly struct Result<T>(bool successful, T result, Exception exception) | |
{ | |
private bool Successful { get; } = successful; | |
public static implicit operator T(Result<T> wrapped) => wrapped.UnwrapOrThrow(); | |
public static implicit operator Result<T>(T result) => new(true, result, default!); | |
public static implicit operator Result<T>(Exception error) => new(false, default!, error); | |
/// <summary> | |
/// Get backing value and convert it to another type |
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
/* Original source: https://stackoverflow.com/a/74454347/399845 */ | |
SET QUOTED_IDENTIFIER ON | |
SET ARITHABORT ON | |
SET NUMERIC_ROUNDABORT OFF | |
SET CONCAT_NULL_YIELDS_NULL ON | |
SET ANSI_NULLS ON | |
SET ANSI_PADDING ON | |
SET ANSI_WARNINGS ON | |
DECLARE @TableName varchar(255); |
OlderNewer