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
| using System; | |
| using Dapper.Contrib.Extensions; | |
| namespace repository_dapper.Models | |
| { | |
| [Table("users")] | |
| public class User | |
| { | |
| [ExplicitKey] | |
| public string Id { get; set; } |
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
| using Microsoft.AspNetCore.Mvc; | |
| using Microsoft.Extensions.Logging; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text.Json; | |
| namespace Seq_Serilog.Controllers | |
| { | |
| [ApiController] |
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
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Hosting; | |
| using Serilog; | |
| using Serilog.Events; | |
| namespace Seq_Serilog | |
| { | |
| public class Program | |
| { | |
| public static void Main(string[] args) |
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
| using AutoMapper; | |
| using Microsoft.AspNetCore.Mvc; | |
| using ServiceExample.Contracts.Request; | |
| using ServiceExample.Contracts.Response; | |
| using ServiceExample.Domain; | |
| using ServiceExample.Services; | |
| using System.Collections.Generic; | |
| namespace ServiceExample.Controllers | |
| { |
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
| using FluentValidation; | |
| using ServiceExample.Contracts.Request; | |
| using System.Text.RegularExpressions; | |
| namespace ServiceExample.Validators | |
| { | |
| public class CreateUserRequestValidator : AbstractValidator<CreateUserRequest> | |
| { | |
| public CreateUserRequestValidator() | |
| { |
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
| namespace ServiceExample.Contracts.Request | |
| { | |
| public class CreateUserRequest | |
| { | |
| public string Name { get; set; } | |
| public string Email { get; set; } | |
| public string Password { get; set; } | |
| } | |
| } |
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
| using System; | |
| namespace ServiceExample.Domain | |
| { | |
| public class User | |
| { | |
| public Guid Id { get; set; } | |
| public string Name { get; set; } | |
| public string Email { get; set; } | |
| public string Password { get; set; } |
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
| using AutoMapper; | |
| using FluentValidation.AspNetCore; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| using ServiceExample.Services; | |
| namespace ServiceExample |
NewerOlder