Change code formatting
This commit is contained in:
@ -7,11 +7,9 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WGneu.Models
|
||||
{
|
||||
namespace WGneu.Models {
|
||||
[Table("AT_plz"), PrimaryKey("Plz", "Okz"), Index("Id", IsUnique = true)]
|
||||
public class AT_Plz
|
||||
{
|
||||
public class AT_Plz {
|
||||
[Column("plz")]
|
||||
public int Plz { get; set; }
|
||||
|
||||
@ -33,9 +31,8 @@ namespace WGneu.Models
|
||||
[ForeignKey("CountryCode")]
|
||||
public virtual Country Country { get; set; }
|
||||
|
||||
public ISet<AT_Plz> Orte(WgContext ctx)
|
||||
{
|
||||
public ISet<AT_Plz> Orte(WgContext ctx) {
|
||||
return ctx.Postleitzahlen.Where(p => p.Plz == Plz).ToHashSet();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user