Skip to content

Commit

Permalink
updated samples and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yorek committed Dec 29, 2020
1 parent 908de0f commit a44f065
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dapper.Samples.Advanced/CustomHandlingComplex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ public class User
public JArray Tags { get; set; }
public Roles Roles { get; set; }
public Company Company { get; set; }
public Preferences Preferences { get; set; }
public Preferences Preferences { get; set; }
public string Notes { get; set; }

public override string ToString()
{
return
$"USER => Id: {Id}, FirstName: {FirstName}, LastName: {LastName}" + Environment.NewLine +
$"ROLES => {Roles?.ToString()}" + Environment.NewLine +
$"TAGS => {Tags?.ToString()}" + Environment.NewLine +
$"COMPANY => {Company?.ToString()}";
$"COMPANY => {Company?.ToString()}" + Environment.NewLine +
$"NOTES => {Notes}";
}
}

Expand Down
2 changes: 1 addition & 1 deletion Dapper.Samples.Advanced/Dapper.Samples.Advanced.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net48;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net48;netcoreapp3.1;net5.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit a44f065

Please sign in to comment.