Skip to content

Commit

Permalink
All entities properties must be VIRTUAL (NHibernate) related #2
Browse files Browse the repository at this point in the history
  • Loading branch information
lscoder committed Aug 17, 2011
1 parent 85f2d1f commit 368f2d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/PetStore.Core/DomainObjects/Foundation/Category.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ public class Category
/// <summary>
/// Category ID
/// </summary>
public int Id { get; set; }
public virtual int Id { get; set; }

/// <summary>
/// Category name
/// </summary>
public string Name { get; set; }
public virtual string Name { get; set; }

/// <summary>
/// Category description
/// </summary>
public string Description { get; set; }
public virtual string Description { get; set; }

#endregion
}
Expand Down
6 changes: 3 additions & 3 deletions src/PetStore.Core/DomainObjects/Foundation/Country.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ public class Country
/// <summary>
/// Country ID
/// </summary>
public int Id { get; set; }
public virtual int Id { get; set; }

/// <summary>
/// Country name
/// </summary>
public string Name { get; set; }
public virtual string Name { get; set; }

/// <summary>
/// Country code (acronym) defined on (ISO 3166-1 alfa-2)
/// </summary>
public string Code { get; set; }
public virtual string Code { get; set; }

#endregion
}
Expand Down
10 changes: 5 additions & 5 deletions src/PetStore.Core/DomainObjects/Foundation/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ public class Product
/// <summary>
/// Product ID
/// </summary>
public int Id { get; set; }
public virtual int Id { get; set; }

/// <summary>
/// Product category
/// </summary>
public Category Category { get; set; }
public virtual Category Category { get; set; }

/// <summary>
/// Product name
/// </summary>
public string Name { get; set; }
public virtual string Name { get; set; }

/// <summary>
/// Product description
/// </summary>
public string Description { get; set; }
public virtual string Description { get; set; }

/// <summary>
/// Product image path
/// </summary>
public string ImagePath { get; set; }
public virtual string ImagePath { get; set; }

#endregion
}
Expand Down

0 comments on commit 368f2d1

Please sign in to comment.