using LinqToDB.Mapping; namespace SyBaseTestWebApp { public class Users { [PrimaryKey] public int Id { get; set; } public string Name { get; set; } public string Dept { get; set; } public override string ToString() { return $"{Id},{Name},{Dept}"; } } public class Part { [PrimaryKey] [Identity] public int Id { get; set; } public string Code { get; set; } public string Name { get; set; } public override string ToString() { return $"Id:{Id},Code:{Code},Name:{Name}"; } public void SetId(int id) { Id = id; } } }