MongoDB in CSharp DataLayer پکیج: MongoDB.Driver Entity: public class Product { [BsonId] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } [BsonElement("Name")] public string Name { […]
RabbitMQMassTransit Consumer Domain Layer -> Base Folder -> BaseEntity.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Discount.Domain.Base { public abstract class BaseEntity<TKey> […]
BaseCommandResponse in CQRS BaseCommandResponse.cs Location : Application Layer -> Responses Folder -> BaseCommandResponse.cs using System.Collections.Generic; namespace HR_Management.Application.Responses { public class BaseCommandResponse { public int Id { […]
Exception Handling in CQRS در پوشه در لایه Application به نام Exceptions ، سه تا کلاس درست میکنیم به نام های ValidationException.cs ، NotFoundException و BadRequestException […]