예제 #1
0
 public static Message[] SelectMessages(this SqlTransaction transaction)
 {
     return(transaction.SelectMessages("SELECT [Id], [Text] FROM [dbo].[Messages]"));
 }
예제 #2
0
 public static Message SelectMessage(this SqlTransaction transaction, int id)
 {
     return(transaction.SelectMessages($"SELECT [Id], [Text] FROM [dbo].[Messages] WHERE [Id] = {id}").FirstOrDefault());
 }