using System.Collections.Generic;
using System.Data.SqlClient;
public static void Main()
DapperPlusManager.Entity<ProductItemStock>().Identity(q => q.Id, true).Ignore(q => q.StoragePath);
Console.WriteLine("Mapping Success");
public interface IDomain<TKey>
public abstract class _Domain<TKey> : IDomain<TKey>
public TKey Id { get; set; }
public bool IsDeleted { get; set; }
public class ProductItemStock : _Domain<int>
public ProductItemStock() { }
public ProductItemStock(int productItemId, int storagePathId, int stock)
this.ProductItemId = productItemId;
this.StoragePathId = storagePathId;
public int ProductItemId { get; set; }
public int StoragePathId { get; set; }
public int Stock { get; set; }
public int ReservedStock { get; set; }
public StoragePath StoragePath { get; set; }