├── .vs └── NetPogramming │ └── v17 │ └── .suo ├── NetPogramming.sln ├── Week-8 ├── WindowsFormsApp1.sln ├── WindowsFormsApp1 │ ├── App.config │ ├── Entity │ │ ├── Context.cs │ │ ├── Kategori.cs │ │ ├── Musteri.cs │ │ └── Urunler.cs │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── Migrations │ │ ├── 202211091900515_InitialCreate.Designer.cs │ │ ├── 202211091900515_InitialCreate.cs │ │ ├── 202211091900515_InitialCreate.resx │ │ ├── 202211091916306_addTable.Designer.cs │ │ ├── 202211091916306_addTable.cs │ │ ├── 202211091916306_addTable.resx │ │ └── Configuration.cs │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── WindowsFormsApp1.csproj │ ├── bin │ │ └── Debug │ │ │ ├── EntityFramework.SqlServer.dll │ │ │ ├── EntityFramework.SqlServer.xml │ │ │ ├── EntityFramework.dll │ │ │ ├── EntityFramework.xml │ │ │ ├── WindowsFormsApp1.exe │ │ │ ├── WindowsFormsApp1.exe.config │ │ │ └── WindowsFormsApp1.pdb │ ├── obj │ │ └── Debug │ │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── WindowsFormsApp1.Form1.resources │ │ │ ├── WindowsFormsApp1.Migrations.InitialCreate.resources │ │ │ ├── WindowsFormsApp1.Migrations.addTable.resources │ │ │ ├── WindowsFormsApp1.Properties.Resources.resources │ │ │ ├── WindowsFormsApp1.csproj.AssemblyReference.cache │ │ │ ├── WindowsFormsApp1.csproj.CopyComplete │ │ │ ├── WindowsFormsApp1.csproj.CoreCompileInputs.cache │ │ │ ├── WindowsFormsApp1.csproj.FileListAbsolute.txt │ │ │ ├── WindowsFormsApp1.csproj.GenerateResource.cache │ │ │ ├── WindowsFormsApp1.exe │ │ │ └── WindowsFormsApp1.pdb │ └── packages.config └── packages │ └── EntityFramework.6.4.4 │ ├── EntityFramework.6.4.4.nupkg │ ├── Icon.png │ ├── build │ ├── EntityFramework.DefaultItems.props │ ├── EntityFramework.props │ ├── EntityFramework.targets │ ├── Microsoft.Data.Entity.Build.Tasks.dll │ └── netcoreapp3.0 │ │ ├── EntityFramework.props │ │ └── EntityFramework.targets │ ├── buildTransitive │ ├── EntityFramework.props │ ├── EntityFramework.targets │ └── netcoreapp3.0 │ │ ├── EntityFramework.props │ │ └── EntityFramework.targets │ ├── content │ └── net40 │ │ ├── App.config.install.xdt │ │ ├── App.config.transform │ │ ├── Web.config.install.xdt │ │ └── Web.config.transform │ ├── lib │ ├── net40 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ ├── net45 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── netstandard2.1 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── tools │ ├── EntityFramework6.PS2.psd1 │ ├── EntityFramework6.PS2.psm1 │ ├── EntityFramework6.psd1 │ ├── EntityFramework6.psm1 │ ├── about_EntityFramework6.help.txt │ ├── init.ps1 │ ├── install.ps1 │ ├── net40 │ ├── any │ │ ├── ef6.exe │ │ └── ef6.pdb │ └── win-x86 │ │ ├── ef6.exe │ │ └── ef6.pdb │ ├── net45 │ ├── any │ │ ├── ef6.exe │ │ └── ef6.pdb │ └── win-x86 │ │ ├── ef6.exe │ │ └── ef6.pdb │ └── netcoreapp3.0 │ └── any │ ├── ef6.dll │ ├── ef6.pdb │ └── ef6.runtimeconfig.json ├── Week1 ├── Week1 │ ├── App.config │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Week1.csproj │ ├── bin │ │ └── Debug │ │ │ ├── Week1.exe │ │ │ ├── Week1.exe.config │ │ │ └── Week1.pdb │ └── obj │ │ ├── Debug │ │ ├── .NETFramework,Version=v4.7.2.AssemblyAttributes.cs │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── Week1.csproj.AssemblyReference.cache │ │ ├── Week1.csproj.CoreCompileInputs.cache │ │ ├── Week1.csproj.FileListAbsolute.txt │ │ ├── Week1.csproj.SuggestedBindingRedirects.cache │ │ ├── Week1.exe │ │ └── Week1.pdb │ │ └── Release │ │ ├── .NETFramework,Version=v4.7.2.AssemblyAttributes.cs │ │ └── Week1.csproj.AssemblyReference.cache └── Week1Project │ ├── Program.cs │ ├── Week1Project.csproj │ ├── bin │ └── Debug │ │ └── net5.0 │ │ ├── Week1Project.deps.json │ │ ├── Week1Project.dll │ │ ├── Week1Project.exe │ │ ├── Week1Project.pdb │ │ ├── Week1Project.runtimeconfig.dev.json │ │ └── Week1Project.runtimeconfig.json │ └── obj │ ├── Debug │ └── net5.0 │ │ ├── .NETCoreApp,Version=v5.0.AssemblyAttributes.cs │ │ ├── Week1Project.AssemblyInfo.cs │ │ ├── Week1Project.AssemblyInfoInputs.cache │ │ ├── Week1Project.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Week1Project.assets.cache │ │ ├── Week1Project.csproj.AssemblyReference.cache │ │ ├── Week1Project.csproj.CoreCompileInputs.cache │ │ ├── Week1Project.csproj.FileListAbsolute.txt │ │ ├── Week1Project.dll │ │ ├── Week1Project.genruntimeconfig.cache │ │ ├── Week1Project.pdb │ │ ├── apphost.exe │ │ ├── ref │ │ └── Week1Project.dll │ │ └── refint │ │ └── Week1Project.dll │ ├── Release │ └── net5.0 │ │ ├── .NETCoreApp,Version=v5.0.AssemblyAttributes.cs │ │ ├── Week1Project.AssemblyInfo.cs │ │ ├── Week1Project.AssemblyInfoInputs.cache │ │ ├── Week1Project.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Week1Project.assets.cache │ │ └── Week1Project.csproj.AssemblyReference.cache │ ├── Week1Project.csproj.nuget.dgspec.json │ ├── Week1Project.csproj.nuget.g.props │ ├── Week1Project.csproj.nuget.g.targets │ ├── project.assets.json │ └── project.nuget.cache ├── Week2 ├── .gitattributes ├── .gitignore ├── ConsoleApp1 │ ├── App.config │ ├── ConsoleApp1.csproj │ ├── IPerson.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Student.cs │ └── Teacher.cs ├── NetPogramming.sln └── WinFormsApp1 │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── IPerson.cs │ ├── Program.cs │ ├── Student.cs │ ├── Teacher.cs │ └── WinFormsApp1.csproj ├── Week3-4-5 ├── StudentsExam.sln ├── StudentsExam │ ├── App.config │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── Model1.Context.cs │ ├── Model1.Context.tt │ ├── Model1.Designer.cs │ ├── Model1.cs │ ├── Model1.edmx │ ├── Model1.edmx.diagram │ ├── Model1.tt │ ├── NOTLIST_Result.cs │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── StudentsExam.csproj │ ├── bin │ │ └── Debug │ │ │ ├── EntityFramework.SqlServer.dll │ │ │ ├── EntityFramework.SqlServer.xml │ │ │ ├── EntityFramework.dll │ │ │ ├── EntityFramework.xml │ │ │ ├── StudentsExam.exe │ │ │ ├── StudentsExam.exe.config │ │ │ └── StudentsExam.pdb │ ├── obj │ │ └── Debug │ │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── StudentsExam.Form1.resources │ │ │ ├── StudentsExam.Properties.Resources.resources │ │ │ ├── StudentsExam.csproj.AssemblyReference.cache │ │ │ ├── StudentsExam.csproj.CopyComplete │ │ │ ├── StudentsExam.csproj.CoreCompileInputs.cache │ │ │ ├── StudentsExam.csproj.FileListAbsolute.txt │ │ │ ├── StudentsExam.csproj.GenerateResource.cache │ │ │ ├── StudentsExam.csproj.SuggestedBindingRedirects.cache │ │ │ ├── StudentsExam.exe │ │ │ ├── StudentsExam.pdb │ │ │ ├── TempPE │ │ │ ├── Model1.Context.cs.dll │ │ │ ├── Model1.Designer.cs.dll │ │ │ └── Model1.cs.dll │ │ │ └── edmxResourcesToEmbed │ │ │ ├── Model1.csdl │ │ │ ├── Model1.msl │ │ │ └── Model1.ssdl │ ├── packages.config │ ├── tblLesson.cs │ ├── tblNote.cs │ └── tblStudent.cs └── packages │ └── EntityFramework.6.2.0 │ ├── Content │ └── net40 │ │ ├── App.config.transform │ │ └── Web.config.transform │ ├── EntityFramework.6.2.0.nupkg │ ├── lib │ ├── net40 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── net45 │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ └── EntityFramework.xml │ └── tools │ ├── EntityFramework.PowerShell.Utility.dll │ ├── EntityFramework.PowerShell.dll │ ├── EntityFramework.psd1 │ ├── EntityFramework.psm1 │ ├── about_EntityFramework.help.txt │ ├── init.ps1 │ ├── install.ps1 │ └── migrate.exe └── Week6-7 ├── EntityModel.sln ├── EntityModel ├── App.config ├── EntityModel.csproj ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── Model1.Context.cs ├── Model1.Context.tt ├── Model1.Designer.cs ├── Model1.cs ├── Model1.edmx ├── Model1.edmx.diagram ├── Model1.tt ├── NOTLISTESI_Result.cs ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── bin │ └── Debug │ │ ├── EntityFramework.SqlServer.dll │ │ ├── EntityFramework.SqlServer.xml │ │ ├── EntityFramework.dll │ │ ├── EntityFramework.xml │ │ ├── EntityModel.exe │ │ ├── EntityModel.exe.config │ │ └── EntityModel.pdb ├── obj │ └── Debug │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── EntityModel.Form1.resources │ │ ├── EntityModel.Properties.Resources.resources │ │ ├── EntityModel.csproj.AssemblyReference.cache │ │ ├── EntityModel.csproj.CopyComplete │ │ ├── EntityModel.csproj.CoreCompileInputs.cache │ │ ├── EntityModel.csproj.FileListAbsolute.txt │ │ ├── EntityModel.csproj.GenerateResource.cache │ │ ├── EntityModel.exe │ │ ├── EntityModel.pdb │ │ ├── TempPE │ │ ├── Model1.Context.cs.dll │ │ ├── Model1.Designer.cs.dll │ │ └── Model1.cs.dll │ │ └── edmxResourcesToEmbed │ │ ├── Model1.csdl │ │ ├── Model1.msl │ │ └── Model1.ssdl ├── packages.config ├── sysdiagrams.cs ├── tblLectures.cs ├── tblNotes.cs └── tblStudents.cs ├── databaseDiagram.PNG └── packages └── EntityFramework.6.2.0 ├── Content └── net40 │ ├── App.config.transform │ └── Web.config.transform ├── EntityFramework.6.2.0.nupkg ├── lib ├── net40 │ ├── EntityFramework.SqlServer.dll │ ├── EntityFramework.SqlServer.xml │ ├── EntityFramework.dll │ └── EntityFramework.xml └── net45 │ ├── EntityFramework.SqlServer.dll │ ├── EntityFramework.SqlServer.xml │ ├── EntityFramework.dll │ └── EntityFramework.xml └── tools ├── EntityFramework.PowerShell.Utility.dll ├── EntityFramework.PowerShell.dll ├── EntityFramework.psd1 ├── EntityFramework.psm1 ├── about_EntityFramework.help.txt ├── init.ps1 ├── install.ps1 └── migrate.exe /.vs/NetPogramming/v17/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/.vs/NetPogramming/v17/.suo -------------------------------------------------------------------------------- /NetPogramming.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32901.215 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Week2", "Week2", "{686E9205-7863-41AA-A6C4-921B683A7C0B}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{C094D17A-1ABB-4776-8798-62FB0CCB67BF}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinFormsApp1", "WinFormsApp1\WinFormsApp1.csproj", "{2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Release|Any CPU.Build.0 = Release|Any CPU 26 | EndGlobalSection 27 | GlobalSection(SolutionProperties) = preSolution 28 | HideSolutionNode = FALSE 29 | EndGlobalSection 30 | GlobalSection(NestedProjects) = preSolution 31 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF} = {686E9205-7863-41AA-A6C4-921B683A7C0B} 32 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA} = {686E9205-7863-41AA-A6C4-921B683A7C0B} 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {349BE2A9-57ED-4DF7-AAD2-DA24FDB0309D} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.31702.278 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp1", "WindowsFormsApp1\WindowsFormsApp1.csproj", "{26B69B25-3B56-416E-BF7E-4EFD5FC551FA}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {26B69B25-3B56-416E-BF7E-4EFD5FC551FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {26B69B25-3B56-416E-BF7E-4EFD5FC551FA}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {26B69B25-3B56-416E-BF7E-4EFD5FC551FA}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {26B69B25-3B56-416E-BF7E-4EFD5FC551FA}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {94FF2A80-0FD7-4457-BF3F-772872E27047} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Entity/Context.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data.Entity; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace WindowsFormsApp1.Entity 9 | { 10 | public class Context:DbContext 11 | { 12 | public DbSet Musteris { get; set; } 13 | public DbSet Urunlers { get; set; } 14 | public DbSet Kategoris { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Entity/Kategori.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace WindowsFormsApp1.Entity 9 | { 10 | public class Kategori 11 | { 12 | [Key] 13 | public int KategoriID { get; set; } 14 | public string KategoriAd { get; set; } 15 | 16 | public ICollection urunlers { get; set; } 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Entity/Musteri.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace WindowsFormsApp1.Entity 9 | { 10 | public class Musteri 11 | { 12 | [Key] 13 | public int MusteriId { get; set; } 14 | public string MusteriAd { get; set; } 15 | public string MusteriSoyad { get; set; } 16 | public string Adres { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Entity/Urunler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace WindowsFormsApp1.Entity 9 | { 10 | public class Urunler 11 | { 12 | [Key] 13 | public int UrunId { get; set; } 14 | public string UrunAd { get; set; } 15 | public int UrunAdet { get; set; } 16 | public Kategori kategori { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace WindowsFormsApp1 3 | { 4 | partial class Form1 5 | { 6 | /// 7 | /// Required designer variable. 8 | /// 9 | private System.ComponentModel.IContainer components = null; 10 | 11 | /// 12 | /// Clean up any resources being used. 13 | /// 14 | /// true if managed resources should be disposed; otherwise, false. 15 | protected override void Dispose(bool disposing) 16 | { 17 | if (disposing && (components != null)) 18 | { 19 | components.Dispose(); 20 | } 21 | base.Dispose(disposing); 22 | } 23 | 24 | #region Windows Form Designer generated code 25 | 26 | /// 27 | /// Required method for Designer support - do not modify 28 | /// the contents of this method with the code editor. 29 | /// 30 | private void InitializeComponent() 31 | { 32 | this.SuspendLayout(); 33 | // 34 | // Form1 35 | // 36 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 37 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 38 | this.ClientSize = new System.Drawing.Size(615, 367); 39 | this.Name = "Form1"; 40 | this.Text = "Form1"; 41 | this.Load += new System.EventHandler(this.Form1_Load); 42 | this.ResumeLayout(false); 43 | 44 | } 45 | 46 | #endregion 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using WindowsFormsApp1.Entity; 11 | 12 | namespace WindowsFormsApp1 13 | { 14 | public partial class Form1 : Form 15 | { 16 | public Form1() 17 | { 18 | InitializeComponent(); 19 | } 20 | 21 | private void Form1_Load(object sender, EventArgs e) 22 | { 23 | Context c = new Context(); 24 | c.Database.Create(); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Migrations/202211091900515_InitialCreate.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace WindowsFormsApp1.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.4.4")] 10 | public sealed partial class InitialCreate : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(InitialCreate)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "202211091900515_InitialCreate"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return null; } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Migrations/202211091900515_InitialCreate.cs: -------------------------------------------------------------------------------- 1 | namespace WindowsFormsApp1.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity.Migrations; 5 | 6 | public partial class InitialCreate : DbMigration 7 | { 8 | public override void Up() 9 | { 10 | CreateTable( 11 | "dbo.Musteris", 12 | c => new 13 | { 14 | MusteriId = c.Int(nullable: false, identity: true), 15 | MusteriAd = c.String(), 16 | MusteriSoyad = c.String(), 17 | Adres = c.String(), 18 | }) 19 | .PrimaryKey(t => t.MusteriId); 20 | 21 | } 22 | 23 | public override void Down() 24 | { 25 | DropTable("dbo.Musteris"); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Migrations/202211091916306_addTable.Designer.cs: -------------------------------------------------------------------------------- 1 | // 2 | namespace WindowsFormsApp1.Migrations 3 | { 4 | using System.CodeDom.Compiler; 5 | using System.Data.Entity.Migrations; 6 | using System.Data.Entity.Migrations.Infrastructure; 7 | using System.Resources; 8 | 9 | [GeneratedCode("EntityFramework.Migrations", "6.4.4")] 10 | public sealed partial class addTable : IMigrationMetadata 11 | { 12 | private readonly ResourceManager Resources = new ResourceManager(typeof(addTable)); 13 | 14 | string IMigrationMetadata.Id 15 | { 16 | get { return "202211091916306_addTable"; } 17 | } 18 | 19 | string IMigrationMetadata.Source 20 | { 21 | get { return Resources.GetString("Source"); } 22 | } 23 | 24 | string IMigrationMetadata.Target 25 | { 26 | get { return Resources.GetString("Target"); } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Migrations/202211091916306_addTable.cs: -------------------------------------------------------------------------------- 1 | namespace WindowsFormsApp1.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity.Migrations; 5 | 6 | public partial class addTable : DbMigration 7 | { 8 | public override void Up() 9 | { 10 | AddColumn("dbo.Urunlers", "kategori_KategoriID", c => c.Int()); 11 | CreateIndex("dbo.Urunlers", "kategori_KategoriID"); 12 | AddForeignKey("dbo.Urunlers", "kategori_KategoriID", "dbo.Kategoris", "KategoriID"); 13 | } 14 | 15 | public override void Down() 16 | { 17 | DropForeignKey("dbo.Urunlers", "kategori_KategoriID", "dbo.Kategoris"); 18 | DropIndex("dbo.Urunlers", new[] { "kategori_KategoriID" }); 19 | DropColumn("dbo.Urunlers", "kategori_KategoriID"); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Migrations/Configuration.cs: -------------------------------------------------------------------------------- 1 | namespace WindowsFormsApp1.Migrations 2 | { 3 | using System; 4 | using System.Data.Entity; 5 | using System.Data.Entity.Migrations; 6 | using System.Linq; 7 | 8 | internal sealed class Configuration : DbMigrationsConfiguration 9 | { 10 | public Configuration() 11 | { 12 | AutomaticMigrationsEnabled = true; 13 | ContextKey = "WindowsFormsApp1.Entity.Context"; 14 | } 15 | 16 | protected override void Seed(WindowsFormsApp1.Entity.Context context) 17 | { 18 | // This method will be called after migrating to the latest version. 19 | 20 | // You can use the DbSet.AddOrUpdate() helper extension method 21 | // to avoid creating duplicate seed data. 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace WindowsFormsApp1 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("WindowsFormsApp1")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("WindowsFormsApp1")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("26b69b25-3b56-416e-bf7e-4efd5fc551fa")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | namespace WindowsFormsApp1.Properties 13 | { 14 | /// 15 | /// A strongly-typed resource class, for looking up localized strings, etc. 16 | /// 17 | // This class was auto-generated by the StronglyTypedResourceBuilder 18 | // class via a tool like ResGen or Visual Studio. 19 | // To add or remove a member, edit your .ResX file then rerun ResGen 20 | // with the /str option, or rebuild your VS project. 21 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 22 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 23 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 24 | internal class Resources 25 | { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() 33 | { 34 | } 35 | 36 | /// 37 | /// Returns the cached ResourceManager instance used by this class. 38 | /// 39 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 40 | internal static global::System.Resources.ResourceManager ResourceManager 41 | { 42 | get 43 | { 44 | if ((resourceMan == null)) 45 | { 46 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApp1.Properties.Resources", typeof(Resources).Assembly); 47 | resourceMan = temp; 48 | } 49 | return resourceMan; 50 | } 51 | } 52 | 53 | /// 54 | /// Overrides the current thread's CurrentUICulture property for all 55 | /// resource lookups using this strongly typed resource class. 56 | /// 57 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 58 | internal static global::System.Globalization.CultureInfo Culture 59 | { 60 | get 61 | { 62 | return resourceCulture; 63 | } 64 | set 65 | { 66 | resourceCulture = value; 67 | } 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | namespace WindowsFormsApp1.Properties 13 | { 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 17 | { 18 | 19 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 20 | 21 | public static Settings Default 22 | { 23 | get 24 | { 25 | return defaultInstance; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/bin/Debug/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/bin/Debug/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/bin/Debug/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/bin/Debug/EntityFramework.dll -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Form1.resources -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Migrations.InitialCreate.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Migrations.InitialCreate.resources -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Migrations.addTable.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Migrations.addTable.resources -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.Properties.Resources.resources -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CopyComplete -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 3ed5e0de7f79007db1fe424bfd0fd6c7701c9685 2 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config 2 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe 3 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb 4 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\EntityFramework.dll 5 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\EntityFramework.SqlServer.dll 6 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\EntityFramework.xml 7 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\EntityFramework.SqlServer.xml 8 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache 9 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources 10 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources 11 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache 12 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache 13 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CopyComplete 14 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe 15 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb 16 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Migrations.InitialCreate.resources 17 | C:\Users\volka\source\repos\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Migrations.addTable.resources 18 | -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb -------------------------------------------------------------------------------- /Week-8/WindowsFormsApp1/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/EntityFramework.6.4.4.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/EntityFramework.6.4.4.nupkg -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/Icon.png -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/build/EntityFramework.DefaultItems.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/build/EntityFramework.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/build/Microsoft.Data.Entity.Build.Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/build/Microsoft.Data.Entity.Build.Tasks.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/build/netcoreapp3.0/EntityFramework.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | True 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/build/netcoreapp3.0/EntityFramework.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/buildTransitive/EntityFramework.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/buildTransitive/EntityFramework.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/buildTransitive/netcoreapp3.0/EntityFramework.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/buildTransitive/netcoreapp3.0/EntityFramework.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/content/net40/App.config.install.xdt: -------------------------------------------------------------------------------- 1 |  2 | 3 |
4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/content/net40/App.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/content/net40/Web.config.install.xdt: -------------------------------------------------------------------------------- 1 |  2 | 3 |
4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/content/net40/Web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/lib/net40/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/lib/net40/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/lib/net40/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/lib/net40/EntityFramework.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/lib/net45/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/lib/net45/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/lib/net45/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/lib/net45/EntityFramework.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/lib/netstandard2.1/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/lib/netstandard2.1/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/lib/netstandard2.1/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/lib/netstandard2.1/EntityFramework.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/about_EntityFramework6.help.txt: -------------------------------------------------------------------------------- 1 | 2 | ___ 3 | / __| 4 | ___ ___ | |__ 5 | | __|| __| | _ \ 6 | | _| | _| | |_| | 7 | |___||_| \___/ 8 | 9 | TOPIC 10 | about_EntityFramework6 11 | 12 | SHORT DESCRIPTION 13 | Provides information about Entity Framework commands. 14 | 15 | LONG DESCRIPTION 16 | This topic describes the Entity Framework commands. Entity Framework is 17 | Microsoft's recommended data access technology for new applications. 18 | 19 | The following Entity Framework cmdlets are used with Entity Framework 20 | Migrations. 21 | 22 | Cmdlet Description 23 | ----------------- --------------------------------------------------- 24 | Enable-Migrations Enables Code First Migrations in a project. 25 | 26 | Add-Migration Scaffolds a migration script for any pending model 27 | changes. 28 | 29 | Update-Database Applies any pending migrations to the database. 30 | 31 | Get-Migrations Displays the migrations that have been applied to 32 | the target database. 33 | 34 | The following Entity Framework cmdlets are used by NuGet packages that 35 | install Entity Framework providers. These commands are not usually used as 36 | part of normal application development. 37 | 38 | Cmdlet Description 39 | ------------------------------ --------------------------------------- 40 | Add-EFProvider Adds or updates an Entity Framework 41 | provider entry in the project config 42 | file. 43 | 44 | Add-EFDefaultConnectionFactory Adds or updates an Entity Framework 45 | default connection factory in the 46 | project config file. 47 | 48 | SEE ALSO 49 | Enable-Migrations 50 | Add-Migration 51 | Update-Database 52 | Get-Migrations 53 | -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net40/any/ef6.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net40/any/ef6.exe -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net40/any/ef6.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net40/any/ef6.pdb -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net40/win-x86/ef6.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net40/win-x86/ef6.exe -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net40/win-x86/ef6.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net40/win-x86/ef6.pdb -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net45/any/ef6.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net45/any/ef6.exe -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net45/any/ef6.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net45/any/ef6.pdb -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net45/win-x86/ef6.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net45/win-x86/ef6.exe -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/net45/win-x86/ef6.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/net45/win-x86/ef6.pdb -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/netcoreapp3.0/any/ef6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/netcoreapp3.0/any/ef6.dll -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/netcoreapp3.0/any/ef6.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week-8/packages/EntityFramework.6.4.4/tools/netcoreapp3.0/any/ef6.pdb -------------------------------------------------------------------------------- /Week-8/packages/EntityFramework.6.4.4/tools/netcoreapp3.0/any/ef6.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "netcoreapp3.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "3.0.0" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /Week1/Week1/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week1/Week1/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Week1 8 | { 9 | internal class Program 10 | { 11 | static void Main(string[] args) 12 | { 13 | int a=0; 14 | string name = "Ahmet"; 15 | long numbers = 123456789101; 16 | var value = 7; 17 | 18 | if (value > numbers) { a++; } else { a--; } 19 | //Array 20 | string[] sehirler = new string[3] { "Ankara", "İstanbul", "İzmir" }; 21 | for(int i=0;i list = new List {"Ankara","İstanbul","İzmir" }; 33 | foreach(string s in list) { Console.WriteLine(s); } 34 | list.Add("Bursa"); 35 | foreach (string s in list) { Console.WriteLine(s); } 36 | 37 | string sentence = "Manisa Celal Bayar University"; 38 | 39 | var result1 = sentence.Length; 40 | var result2 = sentence.Clone(); 41 | var result3 = sentence.EndsWith("a"); 42 | var result4 = sentence.IndexOf("a"); 43 | var result5= sentence.LastIndexOf("a"); 44 | var result6 = sentence.Insert(0, "MCBU "); 45 | var result7 = sentence.Substring(0,6); 46 | var result8 = sentence.ToLower(); 47 | var result9= sentence.ToUpper(); 48 | var result10 = sentence.Replace(" ", "-"); 49 | var result11 = sentence.Remove(0,7); 50 | 51 | Console.WriteLine(result11); 52 | 53 | Console.ReadLine(); 54 | 55 | } 56 | 57 | static void Warning(string s) { Console.WriteLine("Be Careful "+s); } 58 | static int sum(int x,int y) 59 | { 60 | return x + y; 61 | } 62 | 63 | static int multiply(int x,int y) { return x * y; } 64 | 65 | 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /Week1/Week1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Week1")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Week1")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("032682e1-a3aa-4d0e-819b-9ce2741e4c55")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Week1/Week1/Week1.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {032682E1-A3AA-4D0E-819B-9CE2741E4C55} 8 | Exe 9 | Week1 10 | Week1 11 | v4.7.2 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Week1/Week1/bin/Debug/Week1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/bin/Debug/Week1.exe -------------------------------------------------------------------------------- /Week1/Week1/bin/Debug/Week1.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week1/Week1/bin/Debug/Week1.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/bin/Debug/Week1.pdb -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] 5 | -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/Week1.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/obj/Debug/Week1.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/Week1.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 7f4b213b428f4c013f19137338418ee1f5525793 2 | -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/Week1.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\bin\Debug\Week1.exe.config 2 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\bin\Debug\Week1.exe 3 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\bin\Debug\Week1.pdb 4 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\obj\Debug\Week1.csproj.AssemblyReference.cache 5 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\obj\Debug\Week1.csproj.SuggestedBindingRedirects.cache 6 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\obj\Debug\Week1.csproj.CoreCompileInputs.cache 7 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\obj\Debug\Week1.exe 8 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1\obj\Debug\Week1.pdb 9 | -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/Week1.csproj.SuggestedBindingRedirects.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/obj/Debug/Week1.csproj.SuggestedBindingRedirects.cache -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/Week1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/obj/Debug/Week1.exe -------------------------------------------------------------------------------- /Week1/Week1/obj/Debug/Week1.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/obj/Debug/Week1.pdb -------------------------------------------------------------------------------- /Week1/Week1/obj/Release/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] 5 | -------------------------------------------------------------------------------- /Week1/Week1/obj/Release/Week1.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1/obj/Release/Week1.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Week1/Week1Project/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Week1Project 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | Console.WriteLine("Bir telefon numarası giriniz...."); 10 | //05551231231 11 | //+905551231231 12 | //905551231231 13 | //5551231231 14 | //asadadasdada 15 | string phoneNumber=Console.ReadLine(); 16 | string checkedPhone=checkPhone(phoneNumber); 17 | if (checkedPhone.Contains("Hata")) 18 | Console.WriteLine($"Hata Mesajı: {checkedPhone}"); 19 | else 20 | { 21 | Console.WriteLine($"{checkedPhone} Telefona mesaj gönderildi..."); 22 | 23 | } 24 | Console.ReadLine(); 25 | } 26 | 27 | static string checkPhone(string phone) 28 | { 29 | if (phone=="") 30 | { 31 | return ("Hata. Numara giriniz..."); 32 | } 33 | phone=phone.Replace("+",""); 34 | string firstCharacter=phone.Substring(0,1); 35 | if(firstCharacter=="9") 36 | { 37 | phone=phone.Substring(1,phone.Length-1); 38 | } 39 | else if(firstCharacter !="0") 40 | { 41 | phone="0"+phone; 42 | } 43 | if(phone.Length==11) 44 | { 45 | Convert.ToDouble(phone); 46 | return phone; 47 | } 48 | else 49 | return ("Hata. Telefon numarasını kontrol ediniz..."); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Week1/Week1Project/Week1Project.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net5.0 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Week1/Week1Project/bin/Debug/net5.0/Week1Project.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v5.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v5.0": { 9 | "Week1Project/1.0.0": { 10 | "runtime": { 11 | "Week1Project.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Week1Project/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Week1/Week1Project/bin/Debug/net5.0/Week1Project.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/bin/Debug/net5.0/Week1Project.dll -------------------------------------------------------------------------------- /Week1/Week1Project/bin/Debug/net5.0/Week1Project.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/bin/Debug/net5.0/Week1Project.exe -------------------------------------------------------------------------------- /Week1/Week1Project/bin/Debug/net5.0/Week1Project.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/bin/Debug/net5.0/Week1Project.pdb -------------------------------------------------------------------------------- /Week1/Week1Project/bin/Debug/net5.0/Week1Project.runtimeconfig.dev.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "additionalProbingPaths": [ 4 | "C:\\Users\\CBU\\.dotnet\\store\\|arch|\\|tfm|", 5 | "C:\\Users\\CBU\\.nuget\\packages" 6 | ] 7 | } 8 | } -------------------------------------------------------------------------------- /Week1/Week1Project/bin/Debug/net5.0/Week1Project.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net5.0", 4 | "framework": { 5 | "name": "Microsoft.NETCore.App", 6 | "version": "5.0.0" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | using System; 11 | using System.Reflection; 12 | 13 | [assembly: System.Reflection.AssemblyCompanyAttribute("Week1Project")] 14 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 15 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 16 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 17 | [assembly: System.Reflection.AssemblyProductAttribute("Week1Project")] 18 | [assembly: System.Reflection.AssemblyTitleAttribute("Week1Project")] 19 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 20 | 21 | // Generated by the MSBuild WriteCodeFragment class. 22 | 23 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 85e17dd408c8411ed52b1df971f07ed5f1b0bcd0 2 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net5.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property._SupportedPlatformList = Linux,macOS,Windows 9 | build_property.RootNamespace = Week1Project 10 | build_property.ProjectDir = C:\Users\CBU\Source\Repos\NetProgramming\Week1Project\ 11 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Debug/net5.0/Week1Project.assets.cache -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Debug/net5.0/Week1Project.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | bd5e5f47a4471fad278305615d8c534055259f0b 2 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\bin\Debug\net5.0\Week1Project.exe 2 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\bin\Debug\net5.0\Week1Project.deps.json 3 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\bin\Debug\net5.0\Week1Project.runtimeconfig.json 4 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\bin\Debug\net5.0\Week1Project.runtimeconfig.dev.json 5 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\bin\Debug\net5.0\Week1Project.dll 6 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\bin\Debug\net5.0\Week1Project.pdb 7 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.csproj.AssemblyReference.cache 8 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.GeneratedMSBuildEditorConfig.editorconfig 9 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.AssemblyInfoInputs.cache 10 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.AssemblyInfo.cs 11 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.csproj.CoreCompileInputs.cache 12 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.dll 13 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\refint\Week1Project.dll 14 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.pdb 15 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\Week1Project.genruntimeconfig.cache 16 | C:\Users\CBU\source\repos\NetProgrammingLecturerNotes\Week1Project\obj\Debug\net5.0\ref\Week1Project.dll 17 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\bin\Debug\net5.0\Week1Project.exe 18 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\bin\Debug\net5.0\Week1Project.deps.json 19 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\bin\Debug\net5.0\Week1Project.runtimeconfig.json 20 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\bin\Debug\net5.0\Week1Project.runtimeconfig.dev.json 21 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\bin\Debug\net5.0\Week1Project.dll 22 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\bin\Debug\net5.0\Week1Project.pdb 23 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.csproj.AssemblyReference.cache 24 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.GeneratedMSBuildEditorConfig.editorconfig 25 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.AssemblyInfoInputs.cache 26 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.AssemblyInfo.cs 27 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.csproj.CoreCompileInputs.cache 28 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.dll 29 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\refint\Week1Project.dll 30 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.pdb 31 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\Week1Project.genruntimeconfig.cache 32 | C:\Users\CBU\source\repos\NetProgramming\Week1Project\obj\Debug\net5.0\ref\Week1Project.dll 33 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Debug/net5.0/Week1Project.dll -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 191eb668a491b414f2d857848f0eb0d3c2e4283f 2 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/Week1Project.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Debug/net5.0/Week1Project.pdb -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Debug/net5.0/apphost.exe -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/ref/Week1Project.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Debug/net5.0/ref/Week1Project.dll -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Debug/net5.0/refint/Week1Project.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Debug/net5.0/refint/Week1Project.dll -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Release/net5.0/.NETCoreApp,Version=v5.0.AssemblyAttributes.cs: -------------------------------------------------------------------------------- 1 | // 2 | using System; 3 | using System.Reflection; 4 | [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")] 5 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Release/net5.0/Week1Project.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Week1Project")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Week1Project")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Week1Project")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Release/net5.0/Week1Project.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 3afd7d71c41178a427bfeee3bcff0d418cd7b6d8 2 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Release/net5.0/Week1Project.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net5.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property._SupportedPlatformList = Linux,macOS,Windows 9 | build_property.RootNamespace = Week1Project 10 | build_property.ProjectDir = C:\Users\CBU\Source\Repos\NetProgramming\Week1Project\ 11 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Release/net5.0/Week1Project.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Release/net5.0/Week1Project.assets.cache -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Release/net5.0/Week1Project.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week1/Week1Project/obj/Release/net5.0/Week1Project.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Week1Project.csproj.nuget.dgspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "format": 1, 3 | "restore": { 4 | "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\Week1Project.csproj": {} 5 | }, 6 | "projects": { 7 | "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\Week1Project.csproj": { 8 | "version": "1.0.0", 9 | "restore": { 10 | "projectUniqueName": "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\Week1Project.csproj", 11 | "projectName": "Week1Project", 12 | "projectPath": "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\Week1Project.csproj", 13 | "packagesPath": "C:\\Users\\CBU\\.nuget\\packages\\", 14 | "outputPath": "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\obj\\", 15 | "projectStyle": "PackageReference", 16 | "configFilePaths": [ 17 | "C:\\Users\\CBU\\AppData\\Roaming\\NuGet\\NuGet.Config", 18 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" 19 | ], 20 | "originalTargetFrameworks": [ 21 | "net5.0" 22 | ], 23 | "sources": { 24 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, 25 | "https://api.nuget.org/v3/index.json": {} 26 | }, 27 | "frameworks": { 28 | "net5.0": { 29 | "targetAlias": "net5.0", 30 | "projectReferences": {} 31 | } 32 | }, 33 | "warningProperties": { 34 | "warnAsError": [ 35 | "NU1605" 36 | ] 37 | } 38 | }, 39 | "frameworks": { 40 | "net5.0": { 41 | "targetAlias": "net5.0", 42 | "imports": [ 43 | "net461", 44 | "net462", 45 | "net47", 46 | "net471", 47 | "net472", 48 | "net48", 49 | "net481" 50 | ], 51 | "assetTargetFallback": true, 52 | "warn": true, 53 | "frameworkReferences": { 54 | "Microsoft.NETCore.App": { 55 | "privateAssets": "all" 56 | } 57 | }, 58 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.401\\RuntimeIdentifierGraph.json" 59 | } 60 | } 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Week1Project.csproj.nuget.g.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | True 5 | NuGet 6 | $(MSBuildThisFileDirectory)project.assets.json 7 | $(UserProfile)\.nuget\packages\ 8 | C:\Users\CBU\.nuget\packages\ 9 | PackageReference 10 | 6.3.0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/Week1Project.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Week1/Week1Project/obj/project.assets.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "targets": { 4 | "net5.0": {} 5 | }, 6 | "libraries": {}, 7 | "projectFileDependencyGroups": { 8 | "net5.0": [] 9 | }, 10 | "packageFolders": { 11 | "C:\\Users\\CBU\\.nuget\\packages\\": {} 12 | }, 13 | "project": { 14 | "version": "1.0.0", 15 | "restore": { 16 | "projectUniqueName": "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\Week1Project.csproj", 17 | "projectName": "Week1Project", 18 | "projectPath": "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\Week1Project.csproj", 19 | "packagesPath": "C:\\Users\\CBU\\.nuget\\packages\\", 20 | "outputPath": "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\obj\\", 21 | "projectStyle": "PackageReference", 22 | "configFilePaths": [ 23 | "C:\\Users\\CBU\\AppData\\Roaming\\NuGet\\NuGet.Config", 24 | "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" 25 | ], 26 | "originalTargetFrameworks": [ 27 | "net5.0" 28 | ], 29 | "sources": { 30 | "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, 31 | "https://api.nuget.org/v3/index.json": {} 32 | }, 33 | "frameworks": { 34 | "net5.0": { 35 | "targetAlias": "net5.0", 36 | "projectReferences": {} 37 | } 38 | }, 39 | "warningProperties": { 40 | "warnAsError": [ 41 | "NU1605" 42 | ] 43 | } 44 | }, 45 | "frameworks": { 46 | "net5.0": { 47 | "targetAlias": "net5.0", 48 | "imports": [ 49 | "net461", 50 | "net462", 51 | "net47", 52 | "net471", 53 | "net472", 54 | "net48", 55 | "net481" 56 | ], 57 | "assetTargetFallback": true, 58 | "warn": true, 59 | "frameworkReferences": { 60 | "Microsoft.NETCore.App": { 61 | "privateAssets": "all" 62 | } 63 | }, 64 | "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.401\\RuntimeIdentifierGraph.json" 65 | } 66 | } 67 | } 68 | } -------------------------------------------------------------------------------- /Week1/Week1Project/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "malv5wmHDQRZI+Ydi2qSJQDc9jMOKcGcH6oxax9SGMg3hMwyaxA9a5DAnmAhAwmoGZq6lMB47fzYkSyY3yx3Cg==", 4 | "success": true, 5 | "projectFilePath": "C:\\Users\\CBU\\source\\repos\\NetProgramming\\Week1Project\\Week1Project.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Week2/.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /Week2/ConsoleApp1/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week2/ConsoleApp1/ConsoleApp1.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF} 8 | Exe 9 | ConsoleApp1 10 | ConsoleApp1 11 | v4.7.2 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Week2/ConsoleApp1/IPerson.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | public interface IPerson 10 | { 11 | int Id { get; set; } 12 | string FirstName { get; set; } 13 | string LastName { get; set; } 14 | string PhoneNumber { get; set; } 15 | string Address { get; set; } 16 | 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Week2/ConsoleApp1/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | internal class Program 10 | { 11 | static void Main(string[] args) 12 | { 13 | Teacher teacher = new Teacher(); 14 | teacher.Id = 1; 15 | teacher.FirstName = "Grace"; 16 | teacher.LastName = "Li"; 17 | teacher.PhoneNumber="05551231231"; 18 | teacher.Address = "Manisa"; 19 | List list = new List(); 20 | list.Add(teacher); 21 | 22 | foreach (Teacher x in list) 23 | Console.WriteLine(x.FirstName + " " + x.LastName); 24 | 25 | Student student = new Student(); 26 | student.Id = 1; 27 | student.FirstName = "Mark"; 28 | student.LastName = "Chris"; 29 | student.PhoneNumber = "05051231231"; 30 | student.Address = "İzmir"; 31 | List list2 = new List(); 32 | list2.Add(student); 33 | 34 | foreach(Student x in list2) 35 | Console.WriteLine(x.FirstName + " "+x.LastName); 36 | 37 | List persons = new List(); 38 | persons.Add(student); 39 | persons.Add(teacher); 40 | foreach (IPerson x in persons) 41 | Console.WriteLine(x.FirstName + " " + x.LastName); 42 | 43 | 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Week2/ConsoleApp1/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ConsoleApp1")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("ConsoleApp1")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("c094d17a-1abb-4776-8798-62fb0ccb67bf")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Week2/ConsoleApp1/Student.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | public class Student : IPerson 10 | { 11 | public int Id { get; set; } 12 | public string FirstName { get; set; } 13 | public string LastName { get; set; } 14 | public string PhoneNumber { get; set; } 15 | public string Address { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Week2/ConsoleApp1/Teacher.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | public class Teacher : IPerson 10 | { 11 | public int Id { get; set; } 12 | public string FirstName { get; set; } 13 | public string LastName { get; set; } 14 | public string PhoneNumber { get; set; } 15 | public string Address { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Week2/NetPogramming.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32901.215 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Week2", "Week2", "{686E9205-7863-41AA-A6C4-921B683A7C0B}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{C094D17A-1ABB-4776-8798-62FB0CCB67BF}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinFormsApp1", "WinFormsApp1\WinFormsApp1.csproj", "{2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA}.Release|Any CPU.Build.0 = Release|Any CPU 26 | EndGlobalSection 27 | GlobalSection(SolutionProperties) = preSolution 28 | HideSolutionNode = FALSE 29 | EndGlobalSection 30 | GlobalSection(NestedProjects) = preSolution 31 | {C094D17A-1ABB-4776-8798-62FB0CCB67BF} = {686E9205-7863-41AA-A6C4-921B683A7C0B} 32 | {2035A50C-3F95-4DE4-A80E-675EB8F3C6AA} = {686E9205-7863-41AA-A6C4-921B683A7C0B} 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {349BE2A9-57ED-4DF7-AAD2-DA24FDB0309D} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /Week2/WinFormsApp1/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | using ConsoleApp1; 11 | 12 | 13 | namespace WinFormsApp1 14 | { 15 | public partial class Form1 : Form 16 | { 17 | public Form1() 18 | { 19 | InitializeComponent(); 20 | } 21 | List students = new List(); 22 | List teachers = new List(); 23 | private void button1_Click(object sender, EventArgs e) 24 | { 25 | Student student = new Student(); 26 | student.Id = Convert.ToInt32(txtId.Text); 27 | student.FirstName = txtName.Text; 28 | student.LastName=txtLastName.Text; 29 | student.PhoneNumber = txtPhone.Text; 30 | student.Address = txtAddress.Text; 31 | 32 | students.Add(student); 33 | clearTxtBox(); 34 | } 35 | 36 | private void button3_Click(object sender, EventArgs e) 37 | { 38 | listBox1.Items.Clear(); 39 | foreach (IPerson x in students) 40 | listBox1.Items.Add(x.FirstName+" "+x.LastName); 41 | 42 | } 43 | 44 | public void clearTxtBox() 45 | { 46 | foreach (Control c in this.Controls) 47 | { 48 | if (c is TextBox) 49 | c.Text = " "; 50 | } 51 | } 52 | 53 | private void button2_Click(object sender, EventArgs e) 54 | { 55 | Teacher teacher = new Teacher(); 56 | teacher.Id = Convert.ToInt32(txtId.Text); 57 | teacher.FirstName = txtName.Text; 58 | teacher.LastName = txtLastName.Text; 59 | teacher.PhoneNumber = txtPhone.Text; 60 | teacher.Address = txtAddress.Text; 61 | teachers.Add(teacher); 62 | clearTxtBox(); 63 | 64 | } 65 | 66 | private void button4_Click(object sender, EventArgs e) 67 | { 68 | listBox1.Items.Clear(); 69 | foreach (Teacher teacher in teachers) 70 | listBox1.Items.Add(teacher.FirstName+" "+teacher.LastName); 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Week2/WinFormsApp1/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | text/microsoft-resx 50 | 51 | 52 | 2.0 53 | 54 | 55 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 56 | 57 | 58 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 59 | 60 | -------------------------------------------------------------------------------- /Week2/WinFormsApp1/IPerson.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | public interface IPerson 10 | { 11 | int Id { get; set; } 12 | string FirstName { get; set; } 13 | string LastName { get; set; } 14 | string PhoneNumber { get; set; } 15 | string Address { get; set; } 16 | 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Week2/WinFormsApp1/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace WinFormsApp1 8 | { 9 | internal static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.SetHighDpiMode(HighDpiMode.SystemAware); 18 | Application.EnableVisualStyles(); 19 | Application.SetCompatibleTextRenderingDefault(false); 20 | Application.Run(new Form1()); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Week2/WinFormsApp1/Student.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | public class Student : IPerson 10 | { 11 | public int Id { get; set; } 12 | public string FirstName { get; set; } 13 | public string LastName { get; set; } 14 | public string PhoneNumber { get; set; } 15 | public string Address { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Week2/WinFormsApp1/Teacher.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ConsoleApp1 8 | { 9 | public class Teacher : IPerson 10 | { 11 | public int Id { get; set; } 12 | public string FirstName { get; set; } 13 | public string LastName { get; set; } 14 | public string PhoneNumber { get; set; } 15 | public string Address { get; set; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Week2/WinFormsApp1/WinFormsApp1.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | WinExe 5 | net5.0-windows 6 | enable 7 | true 8 | 9 | 10 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.3.32901.215 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StudentsExam", "StudentsExam\StudentsExam.csproj", "{2D540B58-4C46-4DF7-BC6B-930D668ACF75}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {2D540B58-4C46-4DF7-BC6B-930D668ACF75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {2D540B58-4C46-4DF7-BC6B-930D668ACF75}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {2D540B58-4C46-4DF7-BC6B-930D668ACF75}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {2D540B58-4C46-4DF7-BC6B-930D668ACF75}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {0345E16A-D46A-4532-8DDA-5D71CAB64CDF} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | using System.Windows.Forms; 10 | 11 | namespace StudentsExam 12 | { 13 | public partial class Form1 : Form 14 | { 15 | public Form1() 16 | { 17 | InitializeComponent(); 18 | } 19 | dbStudentRegisterEntities db = new dbStudentRegisterEntities(); 20 | private void btnListStudent_Click(object sender, EventArgs e) 21 | { 22 | //dataGridView1.DataSource = db.tblStudents.ToList(); 23 | 24 | var query = from x in db.tblStudents 25 | select new 26 | { 27 | x.id, 28 | x.firstName, 29 | x.lastName, 30 | x.phoneNumber 31 | }; 32 | dataGridView1.DataSource = query.ToList(); 33 | } 34 | 35 | private void button1_Click(object sender, EventArgs e) 36 | { 37 | dataGridView1.DataSource = db.NOTLIST(); 38 | } 39 | 40 | private void btnAddStudent_Click(object sender, EventArgs e) 41 | { 42 | tblStudent tblStudent = new tblStudent(); 43 | tblStudent.firstName = textBox1.Text; 44 | tblStudent.lastName = textBox2.Text; 45 | tblStudent.phoneNumber = textBox3.Text; 46 | 47 | db.tblStudents.Add(tblStudent); 48 | db.SaveChanges(); 49 | 50 | } 51 | 52 | private void btnRemove_Click(object sender, EventArgs e) 53 | { 54 | int id = Convert.ToInt16(textBox4.Text); 55 | tblStudent t= db.tblStudents.Find(id); 56 | 57 | db.tblStudents.Remove(t); 58 | db.SaveChanges(); 59 | } 60 | 61 | private void btnUpdateStudent_Click(object sender, EventArgs e) 62 | { 63 | int id = Convert.ToInt16(textBox4.Text); 64 | tblStudent t = db.tblStudents.Find(id); 65 | 66 | t.firstName=textBox1.Text; 67 | t.lastName=textBox2.Text; 68 | t.phoneNumber=textBox3.Text; 69 | 70 | db.SaveChanges(); 71 | } 72 | 73 | private void textBox4_TextChanged(object sender, EventArgs e) 74 | { 75 | 76 | } 77 | 78 | private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) 79 | { 80 | 81 | } 82 | 83 | private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) 84 | { 85 | textBox4.Text= dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); 86 | } 87 | 88 | private void btnNoteList_Click(object sender, EventArgs e) 89 | { 90 | dataGridView1.DataSource = db.tblNotes.ToList(); 91 | } 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Model1.Context.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace StudentsExam 11 | { 12 | using System; 13 | using System.Data.Entity; 14 | using System.Data.Entity.Infrastructure; 15 | using System.Data.Entity.Core.Objects; 16 | using System.Linq; 17 | 18 | public partial class dbStudentRegisterEntities : DbContext 19 | { 20 | public dbStudentRegisterEntities() 21 | : base("name=dbStudentRegisterEntities") 22 | { 23 | } 24 | 25 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 26 | { 27 | throw new UnintentionalCodeFirstException(); 28 | } 29 | 30 | public virtual DbSet tblLessons { get; set; } 31 | public virtual DbSet tblNotes { get; set; } 32 | public virtual DbSet tblStudents { get; set; } 33 | 34 | public virtual ObjectResult NOTLIST() 35 | { 36 | return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("NOTLIST"); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Model1.Designer.cs: -------------------------------------------------------------------------------- 1 | // T4 code generation is enabled for model 'D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\Model1.edmx'. 2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer 3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model 4 | // is open in the designer. 5 | 6 | // If no context and entity classes have been generated, it may be because you created an empty model but 7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity 8 | // classes for your model, open the model in the designer, right-click on the designer surface, and 9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation 10 | // Item...'. -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Model1.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Model1.edmx.diagram: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/NOTLIST_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace StudentsExam 11 | { 12 | using System; 13 | 14 | public partial class NOTLIST_Result 15 | { 16 | public string Name_Lastname { get; set; } 17 | public int id { get; set; } 18 | public Nullable exam1 { get; set; } 19 | public Nullable exam2 { get; set; } 20 | public Nullable average { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace StudentsExam 8 | { 9 | internal static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("StudentsExam")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("StudentsExam")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("2d540b58-4c46-4df7-bc6b-930d668acf75")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace StudentsExam.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("StudentsExam.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace StudentsExam.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/bin/Debug/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/bin/Debug/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/bin/Debug/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/bin/Debug/EntityFramework.dll -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/bin/Debug/StudentsExam.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/bin/Debug/StudentsExam.exe -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/bin/Debug/StudentsExam.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/bin/Debug/StudentsExam.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/bin/Debug/StudentsExam.pdb -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.Form1.resources -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.Properties.Resources.resources -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.CopyComplete -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 840c9f2e0e17a1acd06fd13e1a273c6514d568d4 2 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\bin\Debug\StudentsExam.exe.config 2 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\bin\Debug\StudentsExam.exe 3 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\bin\Debug\StudentsExam.pdb 4 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\bin\Debug\EntityFramework.dll 5 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\bin\Debug\EntityFramework.SqlServer.dll 6 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\bin\Debug\EntityFramework.xml 7 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\bin\Debug\EntityFramework.SqlServer.xml 8 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.csproj.AssemblyReference.cache 9 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.csproj.SuggestedBindingRedirects.cache 10 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.Form1.resources 11 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.Properties.Resources.resources 12 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.csproj.GenerateResource.cache 13 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.csproj.CoreCompileInputs.cache 14 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.csproj.CopyComplete 15 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.exe 16 | D:\NetProgramming\LectureNotes\StudentsExam\StudentsExam\obj\Debug\StudentsExam.pdb 17 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.GenerateResource.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.GenerateResource.cache -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.SuggestedBindingRedirects.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.csproj.SuggestedBindingRedirects.cache -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.exe -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/StudentsExam.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/StudentsExam.pdb -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/TempPE/Model1.Context.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/TempPE/Model1.Context.cs.dll -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/TempPE/Model1.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/TempPE/Model1.Designer.cs.dll -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/TempPE/Model1.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/StudentsExam/obj/Debug/TempPE/Model1.cs.dll -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/edmxResourcesToEmbed/Model1.csdl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/edmxResourcesToEmbed/Model1.msl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/obj/Debug/edmxResourcesToEmbed/Model1.ssdl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/tblLesson.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace StudentsExam 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class tblLesson 16 | { 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 18 | public tblLesson() 19 | { 20 | this.tblNotes = new HashSet(); 21 | } 22 | 23 | public int id { get; set; } 24 | public string lessonName { get; set; } 25 | 26 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 27 | public virtual ICollection tblNotes { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/tblNote.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace StudentsExam 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class tblNote 16 | { 17 | public int id { get; set; } 18 | public Nullable lesson { get; set; } 19 | public Nullable student { get; set; } 20 | public Nullable exam1 { get; set; } 21 | public Nullable exam2 { get; set; } 22 | public Nullable average { get; set; } 23 | public Nullable state { get; set; } 24 | 25 | public virtual tblLesson tblLesson { get; set; } 26 | public virtual tblStudent tblStudent { get; set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Week3-4-5/StudentsExam/tblStudent.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace StudentsExam 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class tblStudent 16 | { 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 18 | public tblStudent() 19 | { 20 | this.tblNotes = new HashSet(); 21 | } 22 | 23 | public int id { get; set; } 24 | public string firstName { get; set; } 25 | public string lastName { get; set; } 26 | public string phoneNumber { get; set; } 27 | 28 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 29 | public virtual ICollection tblNotes { get; set; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/Content/net40/App.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/Content/net40/Web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/tools/EntityFramework.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/tools/EntityFramework.psd1 -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/tools/about_EntityFramework.help.txt: -------------------------------------------------------------------------------- 1 | TOPIC 2 | about_EntityFramework 3 | 4 | SHORT DESCRIPTION 5 | Provides information about Entity Framework commands. 6 | 7 | LONG DESCRIPTION 8 | This topic describes the Entity Framework commands. Entity Framework is 9 | Microsoft's recommended data access technology for new applications. 10 | 11 | The following Entity Framework cmdlets are used with Entity Framework 12 | Migrations. 13 | 14 | Cmdlet Description 15 | ----------------- --------------------------------------------------- 16 | Enable-Migrations Enables Code First Migrations in a project. 17 | 18 | Add-Migration Scaffolds a migration script for any pending model 19 | changes. 20 | 21 | Update-Database Applies any pending migrations to the database. 22 | 23 | Get-Migrations Displays the migrations that have been applied to 24 | the target database. 25 | 26 | The following Entity Framework cmdlets are used by NuGet packages that 27 | install Entity Framework providers. These commands are not usually used as 28 | part of normal application development. 29 | 30 | Cmdlet Description 31 | ------------------------------ --------------------------------------- 32 | Add-EFProvider Adds or updates an Entity Framework 33 | provider entry in the project config 34 | file. 35 | 36 | Add-EFDefaultConnectionFactory Adds or updates an Entity Framework 37 | default connection factory in the 38 | project config file. 39 | 40 | Initialize-EFConfiguration Initializes the Entity Framework 41 | section in the project config file and 42 | sets defaults. 43 | 44 | SEE ALSO 45 | Enable-Migrations 46 | Add-Migration 47 | Update-Database 48 | Get-Migrations 49 | -------------------------------------------------------------------------------- /Week3-4-5/packages/EntityFramework.6.2.0/tools/migrate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week3-4-5/packages/EntityFramework.6.2.0/tools/migrate.exe -------------------------------------------------------------------------------- /Week6-7/EntityModel.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.31702.278 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityModel", "EntityModel\EntityModel.csproj", "{DBEEE6E4-651D-4197-984B-89F78D448D71}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {DBEEE6E4-651D-4197-984B-89F78D448D71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {DBEEE6E4-651D-4197-984B-89F78D448D71}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {DBEEE6E4-651D-4197-984B-89F78D448D71}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {DBEEE6E4-651D-4197-984B-89F78D448D71}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {4D422F1D-6F1C-42BE-97F8-DAF513D69C6D} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Model1.Context.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace EntityModel 11 | { 12 | using System; 13 | using System.Data.Entity; 14 | using System.Data.Entity.Infrastructure; 15 | using System.Data.Entity.Core.Objects; 16 | using System.Linq; 17 | 18 | public partial class dbStudentsRegisterEntities : DbContext 19 | { 20 | public dbStudentsRegisterEntities() 21 | : base("name=dbStudentsRegisterEntities") 22 | { 23 | } 24 | 25 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 26 | { 27 | throw new UnintentionalCodeFirstException(); 28 | } 29 | 30 | public virtual DbSet tblLectures { get; set; } 31 | public virtual DbSet tblNotes { get; set; } 32 | public virtual DbSet tblStudents { get; set; } 33 | public virtual DbSet sysdiagrams { get; set; } 34 | 35 | public virtual ObjectResult NOTLISTESI() 36 | { 37 | return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("NOTLISTESI"); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Model1.Designer.cs: -------------------------------------------------------------------------------- 1 | // T4 code generation is enabled for model 'C:\Users\volka\source\repos\EntityModel\EntityModel\Model1.edmx'. 2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer 3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model 4 | // is open in the designer. 5 | 6 | // If no context and entity classes have been generated, it may be because you created an empty model but 7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity 8 | // classes for your model, open the model in the designer, right-click on the designer surface, and 9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation 10 | // Item...'. -------------------------------------------------------------------------------- /Week6-7/EntityModel/Model1.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Model1.edmx.diagram: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/NOTLISTESI_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace EntityModel 11 | { 12 | using System; 13 | 14 | public partial class NOTLISTESI_Result 15 | { 16 | public int notıd { get; set; } 17 | public string Name_Lastname { get; set; } 18 | public Nullable exam1 { get; set; } 19 | public Nullable exam2 { get; set; } 20 | public Nullable exam3 { get; set; } 21 | public Nullable average { get; set; } 22 | public Nullable state { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace EntityModel 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("EntityModel")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("EntityModel")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("dbeee6e4-651d-4197-984b-89f78d448d71")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | namespace EntityModel.Properties 13 | { 14 | /// 15 | /// A strongly-typed resource class, for looking up localized strings, etc. 16 | /// 17 | // This class was auto-generated by the StronglyTypedResourceBuilder 18 | // class via a tool like ResGen or Visual Studio. 19 | // To add or remove a member, edit your .ResX file then rerun ResGen 20 | // with the /str option, or rebuild your VS project. 21 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 22 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 23 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 24 | internal class Resources 25 | { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() 33 | { 34 | } 35 | 36 | /// 37 | /// Returns the cached ResourceManager instance used by this class. 38 | /// 39 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 40 | internal static global::System.Resources.ResourceManager ResourceManager 41 | { 42 | get 43 | { 44 | if ((resourceMan == null)) 45 | { 46 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("EntityModel.Properties.Resources", typeof(Resources).Assembly); 47 | resourceMan = temp; 48 | } 49 | return resourceMan; 50 | } 51 | } 52 | 53 | /// 54 | /// Overrides the current thread's CurrentUICulture property for all 55 | /// resource lookups using this strongly typed resource class. 56 | /// 57 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 58 | internal static global::System.Globalization.CultureInfo Culture 59 | { 60 | get 61 | { 62 | return resourceCulture; 63 | } 64 | set 65 | { 66 | resourceCulture = value; 67 | } 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | namespace EntityModel.Properties 13 | { 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 17 | { 18 | 19 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 20 | 21 | public static Settings Default 22 | { 23 | get 24 | { 25 | return defaultInstance; 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/bin/Debug/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/bin/Debug/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week6-7/EntityModel/bin/Debug/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/bin/Debug/EntityFramework.dll -------------------------------------------------------------------------------- /Week6-7/EntityModel/bin/Debug/EntityModel.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/bin/Debug/EntityModel.exe -------------------------------------------------------------------------------- /Week6-7/EntityModel/bin/Debug/EntityModel.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/bin/Debug/EntityModel.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/bin/Debug/EntityModel.pdb -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/EntityModel.Form1.resources -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/EntityModel.Properties.Resources.resources -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- 1 | MBRSC -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/EntityModel.csproj.CopyComplete -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | a3fb0a0de3d2b588d59681388ab7ee39b2b9ae5d 2 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\volka\source\repos\EntityModel\EntityModel\bin\Debug\EntityModel.exe.config 2 | C:\Users\volka\source\repos\EntityModel\EntityModel\bin\Debug\EntityModel.exe 3 | C:\Users\volka\source\repos\EntityModel\EntityModel\bin\Debug\EntityModel.pdb 4 | C:\Users\volka\source\repos\EntityModel\EntityModel\bin\Debug\EntityFramework.dll 5 | C:\Users\volka\source\repos\EntityModel\EntityModel\bin\Debug\EntityFramework.SqlServer.dll 6 | C:\Users\volka\source\repos\EntityModel\EntityModel\bin\Debug\EntityFramework.xml 7 | C:\Users\volka\source\repos\EntityModel\EntityModel\bin\Debug\EntityFramework.SqlServer.xml 8 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.csproj.AssemblyReference.cache 9 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.Form1.resources 10 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.Properties.Resources.resources 11 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.csproj.GenerateResource.cache 12 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.csproj.CoreCompileInputs.cache 13 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.csproj.CopyComplete 14 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.exe 15 | C:\Users\volka\source\repos\EntityModel\EntityModel\obj\Debug\EntityModel.pdb 16 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.csproj.GenerateResource.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/EntityModel.csproj.GenerateResource.cache -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/EntityModel.exe -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/EntityModel.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/EntityModel.pdb -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/TempPE/Model1.Context.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/TempPE/Model1.Context.cs.dll -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/TempPE/Model1.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/TempPE/Model1.Designer.cs.dll -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/TempPE/Model1.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/EntityModel/obj/Debug/TempPE/Model1.cs.dll -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/edmxResourcesToEmbed/Model1.csdl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/edmxResourcesToEmbed/Model1.msl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/obj/Debug/edmxResourcesToEmbed/Model1.ssdl: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/sysdiagrams.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace EntityModel 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class sysdiagrams 16 | { 17 | public string name { get; set; } 18 | public int principal_id { get; set; } 19 | public int diagram_id { get; set; } 20 | public Nullable version { get; set; } 21 | public byte[] definition { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/tblLectures.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace EntityModel 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class tblLectures 16 | { 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 18 | public tblLectures() 19 | { 20 | this.tblNotes = new HashSet(); 21 | } 22 | 23 | public int id { get; set; } 24 | public string lectureName { get; set; } 25 | 26 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 27 | public virtual ICollection tblNotes { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/tblNotes.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace EntityModel 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class tblNotes 16 | { 17 | public int notId { get; set; } 18 | public Nullable student { get; set; } 19 | public Nullable lecture { get; set; } 20 | public Nullable exam1 { get; set; } 21 | public Nullable exam2 { get; set; } 22 | public Nullable exam3 { get; set; } 23 | public Nullable average { get; set; } 24 | public Nullable state { get; set; } 25 | 26 | public virtual tblLectures tblLectures { get; set; } 27 | public virtual tblStudents tblStudents { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Week6-7/EntityModel/tblStudents.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace EntityModel 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class tblStudents 16 | { 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 18 | public tblStudents() 19 | { 20 | this.tblNotes = new HashSet(); 21 | } 22 | 23 | public int id { get; set; } 24 | public string name { get; set; } 25 | public string lastname { get; set; } 26 | public string photo { get; set; } 27 | 28 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 29 | public virtual ICollection tblNotes { get; set; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Week6-7/databaseDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/databaseDiagram.PNG -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/Content/net40/App.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/Content/net40/Web.config.transform: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/EntityFramework.6.2.0.nupkg -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/lib/net40/EntityFramework.dll -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/lib/net45/EntityFramework.dll -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.Utility.dll -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/tools/EntityFramework.PowerShell.dll -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/tools/EntityFramework.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/tools/EntityFramework.psd1 -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/tools/about_EntityFramework.help.txt: -------------------------------------------------------------------------------- 1 | TOPIC 2 | about_EntityFramework 3 | 4 | SHORT DESCRIPTION 5 | Provides information about Entity Framework commands. 6 | 7 | LONG DESCRIPTION 8 | This topic describes the Entity Framework commands. Entity Framework is 9 | Microsoft's recommended data access technology for new applications. 10 | 11 | The following Entity Framework cmdlets are used with Entity Framework 12 | Migrations. 13 | 14 | Cmdlet Description 15 | ----------------- --------------------------------------------------- 16 | Enable-Migrations Enables Code First Migrations in a project. 17 | 18 | Add-Migration Scaffolds a migration script for any pending model 19 | changes. 20 | 21 | Update-Database Applies any pending migrations to the database. 22 | 23 | Get-Migrations Displays the migrations that have been applied to 24 | the target database. 25 | 26 | The following Entity Framework cmdlets are used by NuGet packages that 27 | install Entity Framework providers. These commands are not usually used as 28 | part of normal application development. 29 | 30 | Cmdlet Description 31 | ------------------------------ --------------------------------------- 32 | Add-EFProvider Adds or updates an Entity Framework 33 | provider entry in the project config 34 | file. 35 | 36 | Add-EFDefaultConnectionFactory Adds or updates an Entity Framework 37 | default connection factory in the 38 | project config file. 39 | 40 | Initialize-EFConfiguration Initializes the Entity Framework 41 | section in the project config file and 42 | sets defaults. 43 | 44 | SEE ALSO 45 | Enable-Migrations 46 | Add-Migration 47 | Update-Database 48 | Get-Migrations 49 | -------------------------------------------------------------------------------- /Week6-7/packages/EntityFramework.6.2.0/tools/migrate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VolkanAltintas/NetProgramming/2d13600a2ca668d6e5baa384c038eaf4219cf6c6/Week6-7/packages/EntityFramework.6.2.0/tools/migrate.exe --------------------------------------------------------------------------------