Initial Commit
This commit is contained in:
18
Model/Point.cs
Normal file
18
Model/Point.cs
Normal 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
13
Model/SchoolClass.cs
Normal 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
15
Model/Student.cs
Normal 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
13
Model/StudentPart2.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user