You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
722 B
36 lines
722 B
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;
|
|
}
|
|
}
|
|
}
|