Skip to content

Commit

Permalink
Changed the visibility of Id setters from private to protected on ent…
Browse files Browse the repository at this point in the history
…ities used on Examples.
  • Loading branch information
Saulis committed Dec 10, 2011
1 parent 090117e commit 5750d66
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Examples.FirstAutomappedProject/Entities/Employee.cs
Expand Up @@ -2,7 +2,7 @@ namespace Examples.FirstAutomappedProject.Entities
{
public class Employee
{
public virtual int Id { get; private set; }
public virtual int Id { get; protected set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual Store Store { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Examples.FirstAutomappedProject/Entities/Product.cs
Expand Up @@ -4,7 +4,7 @@ namespace Examples.FirstAutomappedProject.Entities
{
public class Product
{
public virtual int Id { get; private set; }
public virtual int Id { get; protected set; }
public virtual string Name { get; set; }
public virtual double Price { get; set; }
public virtual Location Location { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Examples.FirstAutomappedProject/Entities/Store.cs
Expand Up @@ -4,7 +4,7 @@ namespace Examples.FirstAutomappedProject.Entities
{
public class Store
{
public virtual int Id { get; private set; }
public virtual int Id { get; protected set; }
public virtual string Name { get; set; }
public virtual IList<Product> Products { get; set; }
public virtual IList<Employee> Staff { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Examples.FirstProject/Entities/Employee.cs
Expand Up @@ -4,7 +4,7 @@ namespace Examples.FirstProject.Entities
{
public class Employee
{
public virtual int Id { get; private set; }
public virtual int Id { get; protected set; }
public virtual string FirstName { get; set; }
public virtual string LastName { get; set; }
public virtual Store Store { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Examples.FirstProject/Entities/Product.cs
Expand Up @@ -4,7 +4,7 @@ namespace Examples.FirstProject.Entities
{
public class Product
{
public virtual int Id { get; private set; }
public virtual int Id { get; protected set; }
public virtual string Name { get; set; }
public virtual double Price { get; set; }
public virtual Location Location { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Examples.FirstProject/Entities/Store.cs
Expand Up @@ -4,7 +4,7 @@ namespace Examples.FirstProject.Entities
{
public class Store
{
public virtual int Id { get; private set; }
public virtual int Id { get; protected set; }
public virtual string Name { get; set; }
public virtual IList<Product> Products { get; set; }
public virtual IList<Employee> Staff { get; set; }
Expand Down

0 comments on commit 5750d66

Please sign in to comment.