📜  EntityFramework:在不同场景中使用表 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:19.549000             🧑  作者: Mango

代码示例1
using System.ComponentModel.DataAnnotations.Schema;

[Table("t_Department", Schema = "school")]
public class Department
{
    public int Id { get; set; }

    public string Name { get; set; }
}