Initial Commit

This commit is contained in:
2022-09-26 16:37:42 +02:00
parent fd1cab2aca
commit 1932b125b9
32 changed files with 357 additions and 0 deletions

18
Model/Point.cs Normal file
View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model
{
internal class Point
{
public int x { get; set; }
public int y { get; set; }
public int CalcDistance(Point otherPoint)
{
return x - otherPoint.x;
}
}
}

13
Model/SchoolClass.cs Normal file
View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model
{
internal class SchoolClass
{
public string FirstName { get; set; }
}
}

15
Model/Student.cs Normal file
View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model {
public class Student {
[Key]
public string FirstName { get; set; }
public string LastName { get; set; }
public long SozNumber { get; set; }
}
}

13
Model/StudentPart2.cs Normal file
View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Spg.BasicDemo.Model
{
public partial class StudentPart2
{
public int Id { get; set; }
}
}