Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

EntityFramework: using tables in different scemas

using System.ComponentModel.DataAnnotations.Schema;

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

    public string Name { get; set; }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tables #scemas
ADD COMMENT
Topic
Name
1+6 =