Change code formatting

This commit is contained in:
2023-02-27 15:33:30 +01:00
parent 70b63e3dd4
commit 5480e4f9b9
17 changed files with 148 additions and 300 deletions

View File

@ -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();
}
}
}
}