├── .gitignore ├── .vs ├── Simple_ CRUD_WithMySql │ ├── v14 │ │ └── .suo │ └── v16 │ │ └── Server │ │ └── sqlite3 │ │ ├── storage.ide │ │ ├── storage.ide-shm │ │ └── storage.ide-wal └── slnx.sqlite ├── DB_Scripts └── MySQl_DB_Scripts.sql ├── PORTAL.DAL ├── MySQLconnection.cs ├── PORTAL.DAL.csproj ├── Properties │ └── AssemblyInfo.cs ├── bin │ └── Debug │ │ ├── MySql.Data.DLL │ │ ├── MySql.Data.xml │ │ ├── PORTAL.DAL.dll │ │ └── PORTAL.DAL.pdb └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── PORTAL.DAL.csproj.CopyComplete │ ├── PORTAL.DAL.csproj.FileListAbsolute.txt │ ├── PORTAL.DAL.csprojResolveAssemblyReference.cache │ ├── PORTAL.DAL.dll │ ├── PORTAL.DAL.pdb │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── PORTAL.MODEL ├── PORTAL.MODEL.csproj ├── Properties │ └── AssemblyInfo.cs ├── bin │ └── Debug │ │ ├── PORTAL.MODEL.dll │ │ └── PORTAL.MODEL.pdb ├── item.cs └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── PORTAL.MODEL.csproj.FileListAbsolute.txt │ ├── PORTAL.MODEL.dll │ ├── PORTAL.MODEL.pdb │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── README.md ├── Simple_ CRUD_WithMySql.sln └── Simple_ CRUD_WithMySql ├── App.config ├── FrmUpdateItem.Designer.cs ├── FrmUpdateItem.cs ├── FrmUpdateItem.resx ├── Main.Designer.cs ├── Main.cs ├── Main.resx ├── Program.cs ├── Properties ├── AssemblyInfo.cs ├── DataSources │ └── PORTAL.MODEL.item.datasource ├── Resources.Designer.cs ├── Resources.resx ├── Settings.Designer.cs └── Settings.settings ├── Simple_ CRUD_WithMySql.csproj ├── bin └── Debug │ ├── MySql.Data.dll │ ├── MySql.Data.xml │ ├── PORTAL.DAL.dll │ ├── PORTAL.DAL.pdb │ ├── PORTAL.MODEL.dll │ ├── PORTAL.MODEL.pdb │ ├── Simple_ CRUD_WithMySql.exe │ ├── Simple_ CRUD_WithMySql.exe.config │ ├── Simple_ CRUD_WithMySql.pdb │ ├── Simple_ CRUD_WithMySql.vshost.exe │ └── Simple_ CRUD_WithMySql.vshost.exe.config └── obj └── Debug ├── DesignTimeResolveAssemblyReferences.cache ├── DesignTimeResolveAssemblyReferencesInput.cache ├── Simple_ CRUD_WithMySql.csproj.CopyComplete ├── Simple_ CRUD_WithMySql.csproj.FileListAbsolute.txt ├── Simple_ CRUD_WithMySql.csproj.GenerateResource.Cache ├── Simple_ CRUD_WithMySql.csprojResolveAssemblyReference.cache ├── Simple_ CRUD_WithMySql.exe ├── Simple_ CRUD_WithMySql.pdb ├── Simple__CRUD_WithMySql.FrmUpdateItem.resources ├── Simple__CRUD_WithMySql.Main.resources ├── Simple__CRUD_WithMySql.Properties.Resources.resources ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs /.gitignore: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # This .gitignore file was automatically created by Microsoft(R) Visual Studio. 3 | ################################################################################ 4 | 5 | /.vs/Simple_ CRUD_WithMySql/v16/Server/sqlite3/db.lock 6 | -------------------------------------------------------------------------------- /.vs/Simple_ CRUD_WithMySql/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/.vs/Simple_ CRUD_WithMySql/v14/.suo -------------------------------------------------------------------------------- /.vs/Simple_ CRUD_WithMySql/v16/Server/sqlite3/storage.ide: -------------------------------------------------------------------------------- 1 | SQLite format 3@ .A  -------------------------------------------------------------------------------- /.vs/Simple_ CRUD_WithMySql/v16/Server/sqlite3/storage.ide-shm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/.vs/Simple_ CRUD_WithMySql/v16/Server/sqlite3/storage.ide-shm -------------------------------------------------------------------------------- /.vs/Simple_ CRUD_WithMySql/v16/Server/sqlite3/storage.ide-wal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/.vs/Simple_ CRUD_WithMySql/v16/Server/sqlite3/storage.ide-wal -------------------------------------------------------------------------------- /.vs/slnx.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/.vs/slnx.sqlite -------------------------------------------------------------------------------- /DB_Scripts/MySQl_DB_Scripts.sql: -------------------------------------------------------------------------------- 1 | #Version 1.0 2 | create database test; 3 | 4 | use test; 5 | 6 | create table items 7 | ( 8 | ID int auto_increment primary key, 9 | productName nvarchar(100), 10 | productPrice decimal(12,2), 11 | isActive tinyint 12 | ); 13 | 14 | 15 | -------------------------------------------------------------------------------- /PORTAL.DAL/MySQLconnection.cs: -------------------------------------------------------------------------------- 1 | using MySql.Data.MySqlClient; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Configuration; 5 | using System.Data; 6 | 7 | namespace PORTAL.DAL 8 | { 9 | public class MySQLconnection 10 | { 11 | public MySqlConnection connection; 12 | 13 | public MySqlConnection CreateConnection() //create mysql connection 14 | { 15 | try 16 | { 17 | string connectionString = ConfigurationManager.AppSettings["AppConnection"]; 18 | connection = new MySqlConnection(connectionString); 19 | return connection; 20 | } catch (MySqlException ex) 21 | { 22 | throw ex; 23 | } 24 | } 25 | 26 | private bool OpenConnection() //connect open 27 | { 28 | try 29 | { 30 | connection = CreateConnection(); 31 | if(connection.State == ConnectionState.Closed) connection.Open(); 32 | return true; 33 | } 34 | catch (MySqlException ex) 35 | { 36 | throw ex; 37 | } 38 | } 39 | 40 | private bool CloseConnection() //conne ction close 41 | { 42 | try 43 | { 44 | if (connection.State == ConnectionState.Open) connection.Close(); 45 | return true; 46 | } 47 | catch (MySqlException ex) 48 | { 49 | throw ex; 50 | } 51 | } 52 | 53 | public void Executing(string query) //execute sql query 54 | { 55 | try 56 | { 57 | if (OpenConnection()) 58 | { 59 | //create command and assign the query and connection from the constructor 60 | using (MySqlCommand cmd = new MySqlCommand(query, connection)) 61 | { 62 | cmd.ExecuteNonQuery(); 63 | } 64 | } 65 | } 66 | catch (Exception ex) 67 | { 68 | throw ex; 69 | } 70 | finally 71 | { 72 | CloseConnection(); 73 | } 74 | } 75 | 76 | public DataSet LoadData(string Query) //get data using sql query 77 | { 78 | try 79 | { 80 | DataSet ds = new DataSet(); 81 | if (OpenConnection()) 82 | { 83 | using (MySqlCommand cmd = new MySqlCommand(Query, connection)) 84 | { 85 | cmd.CommandType = CommandType.Text; 86 | 87 | using (MySqlDataAdapter sda = new MySqlDataAdapter(cmd)) 88 | { 89 | sda.Fill(ds); 90 | } 91 | } 92 | } 93 | return ds; 94 | } 95 | catch (Exception ex) 96 | { 97 | throw ex; 98 | } 99 | finally 100 | { 101 | CloseConnection(); 102 | } 103 | } 104 | 105 | public DataSet ExucteSP(Dictionary Params, string spName) // execute sql stored procedure 106 | { 107 | try 108 | { 109 | DataSet ds = new DataSet(); 110 | if (OpenConnection()) //open connection 111 | { 112 | using (MySqlCommand cmd = new MySqlCommand(spName, connection)) 113 | { 114 | cmd.CommandType = CommandType.StoredProcedure; 115 | 116 | foreach (KeyValuePair item in Params) 117 | { 118 | cmd.Parameters.AddWithValue("@" + item.Key, item.Value); 119 | } 120 | using (MySqlDataAdapter sda = new MySqlDataAdapter(cmd)) 121 | { 122 | DataTable dt = new DataTable(); 123 | sda.Fill(ds); 124 | } 125 | } 126 | } 127 | return ds; 128 | } 129 | catch (Exception ex) 130 | { 131 | throw ex; 132 | } 133 | finally 134 | { 135 | CloseConnection(); 136 | } 137 | } 138 | } 139 | } 140 | -------------------------------------------------------------------------------- /PORTAL.DAL/PORTAL.DAL.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {DDEA84D3-19E5-46C8-B2F9-88E810829BE9} 8 | Library 9 | Properties 10 | PORTAL.DAL 11 | PORTAL.DAL 12 | v4.5.2 13 | 512 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\Debug\ 20 | DEBUG;TRACE 21 | prompt 22 | 4 23 | 24 | 25 | pdbonly 26 | true 27 | bin\Release\ 28 | TRACE 29 | prompt 30 | 4 31 | 32 | 33 | 34 | False 35 | ..\..\..\..\My Projects\MySql.Data.DLL 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 59 | -------------------------------------------------------------------------------- /PORTAL.DAL/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("PORTAL.DAL")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PORTAL.DAL")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 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("ddea84d3-19e5-46c8-b2f9-88e810829be9")] 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 | -------------------------------------------------------------------------------- /PORTAL.DAL/bin/Debug/MySql.Data.DLL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/bin/Debug/MySql.Data.DLL -------------------------------------------------------------------------------- /PORTAL.DAL/bin/Debug/PORTAL.DAL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/bin/Debug/PORTAL.DAL.dll -------------------------------------------------------------------------------- /PORTAL.DAL/bin/Debug/PORTAL.DAL.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/bin/Debug/PORTAL.DAL.pdb -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/PORTAL.DAL.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/PORTAL.DAL.csproj.CopyComplete -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/PORTAL.DAL.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.DAL\bin\Debug\PORTAL.DAL.dll 2 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.DAL\bin\Debug\PORTAL.DAL.pdb 3 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.DAL\bin\Debug\MySql.Data.DLL 4 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.DAL\obj\Debug\PORTAL.DAL.csprojResolveAssemblyReference.cache 5 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.DAL\obj\Debug\PORTAL.DAL.dll 6 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.DAL\obj\Debug\PORTAL.DAL.pdb 7 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\bin\Debug\PORTAL.DAL.dll 8 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\bin\Debug\PORTAL.DAL.pdb 9 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\bin\Debug\MySql.Data.dll 10 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\bin\Debug\Google.Protobuf.dll 11 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\bin\Debug\MySql.Data.xml 12 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\obj\Debug\PORTAL.DAL.csprojAssemblyReference.cache 13 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\obj\Debug\PORTAL.DAL.csproj.CoreCompileInputs.cache 14 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\obj\Debug\PORTAL.DAL.csproj.CopyComplete 15 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\obj\Debug\PORTAL.DAL.dll 16 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.DAL\obj\Debug\PORTAL.DAL.pdb 17 | -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/PORTAL.DAL.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/PORTAL.DAL.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/PORTAL.DAL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/PORTAL.DAL.dll -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/PORTAL.DAL.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/PORTAL.DAL.pdb -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /PORTAL.DAL/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.DAL/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /PORTAL.MODEL/PORTAL.MODEL.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {035E0B32-5D29-47C5-AFA7-7A0B5EE3640D} 8 | Library 9 | Properties 10 | PORTAL.MODEL 11 | PORTAL.MODEL 12 | v4.5.2 13 | 512 14 | 15 | 16 | true 17 | full 18 | false 19 | bin\Debug\ 20 | DEBUG;TRACE 21 | prompt 22 | 4 23 | 24 | 25 | pdbonly 26 | true 27 | bin\Release\ 28 | TRACE 29 | prompt 30 | 4 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 54 | -------------------------------------------------------------------------------- /PORTAL.MODEL/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("PORTAL.MODEL")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PORTAL.MODEL")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 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("035e0b32-5d29-47c5-afa7-7a0b5ee3640d")] 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 | -------------------------------------------------------------------------------- /PORTAL.MODEL/bin/Debug/PORTAL.MODEL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/bin/Debug/PORTAL.MODEL.dll -------------------------------------------------------------------------------- /PORTAL.MODEL/bin/Debug/PORTAL.MODEL.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/bin/Debug/PORTAL.MODEL.pdb -------------------------------------------------------------------------------- /PORTAL.MODEL/item.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 PORTAL.MODEL 8 | { 9 | public class item 10 | { 11 | public string ID { get; set; } 12 | public string ProductName { get; set; } 13 | public double Price { get; set; } 14 | public bool isActive { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /PORTAL.MODEL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /PORTAL.MODEL/obj/Debug/PORTAL.MODEL.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.MODEL\bin\Debug\PORTAL.MODEL.dll 2 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.MODEL\bin\Debug\PORTAL.MODEL.pdb 3 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.MODEL\obj\Debug\PORTAL.MODEL.dll 4 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\PORTAL.MODEL\obj\Debug\PORTAL.MODEL.pdb 5 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.MODEL\bin\Debug\PORTAL.MODEL.dll 6 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.MODEL\bin\Debug\PORTAL.MODEL.pdb 7 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.MODEL\obj\Debug\PORTAL.MODEL.csprojAssemblyReference.cache 8 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.MODEL\obj\Debug\PORTAL.MODEL.csproj.CoreCompileInputs.cache 9 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.MODEL\obj\Debug\PORTAL.MODEL.dll 10 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\PORTAL.MODEL\obj\Debug\PORTAL.MODEL.pdb 11 | -------------------------------------------------------------------------------- /PORTAL.MODEL/obj/Debug/PORTAL.MODEL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/obj/Debug/PORTAL.MODEL.dll -------------------------------------------------------------------------------- /PORTAL.MODEL/obj/Debug/PORTAL.MODEL.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/obj/Debug/PORTAL.MODEL.pdb -------------------------------------------------------------------------------- /PORTAL.MODEL/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /PORTAL.MODEL/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /PORTAL.MODEL/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/PORTAL.MODEL/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Simple-CRUD-application-With-C# Windows Form 2 | 3 | A simple and basic system to add, edit, delete and view using C# and MySQL. 4 | 5 | # Setup Local Environment 6 | 7 | - Download the project. 8 | - go to project Simple_ CRUD_WithMySql -> App.config and find key 'AppConnection'. 9 | - change the connection string to point to your computer running MySql server 10 | 11 | *note - SQL script to create database and tables is present in DB_Scripts folder. 12 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Simple_ CRUD_WithMySql", "Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql.csproj", "{3A5161AB-B8D7-4D91-835E-41E00658D7FA}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PORTAL.MODEL", "PORTAL.MODEL\PORTAL.MODEL.csproj", "{035E0B32-5D29-47C5-AFA7-7A0B5EE3640D}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PORTAL.DAL", "PORTAL.DAL\PORTAL.DAL.csproj", "{DDEA84D3-19E5-46C8-B2F9-88E810829BE9}" 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 | {3A5161AB-B8D7-4D91-835E-41E00658D7FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {3A5161AB-B8D7-4D91-835E-41E00658D7FA}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {3A5161AB-B8D7-4D91-835E-41E00658D7FA}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {3A5161AB-B8D7-4D91-835E-41E00658D7FA}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {035E0B32-5D29-47C5-AFA7-7A0B5EE3640D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {035E0B32-5D29-47C5-AFA7-7A0B5EE3640D}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {035E0B32-5D29-47C5-AFA7-7A0B5EE3640D}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {035E0B32-5D29-47C5-AFA7-7A0B5EE3640D}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {DDEA84D3-19E5-46C8-B2F9-88E810829BE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {DDEA84D3-19E5-46C8-B2F9-88E810829BE9}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {DDEA84D3-19E5-46C8-B2F9-88E810829BE9}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {DDEA84D3-19E5-46C8-B2F9-88E810829BE9}.Release|Any CPU.Build.0 = Release|Any CPU 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | EndGlobal 35 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/FrmUpdateItem.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Simple__CRUD_WithMySql 2 | { 3 | partial class FrmUpdateItem 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.txtProductName = new System.Windows.Forms.TextBox(); 32 | this.label2 = new System.Windows.Forms.Label(); 33 | this.txtbPrice = new System.Windows.Forms.TextBox(); 34 | this.label3 = new System.Windows.Forms.Label(); 35 | this.chkActive = new System.Windows.Forms.CheckBox(); 36 | this.btnSave = new System.Windows.Forms.Button(); 37 | this.btnCancel = new System.Windows.Forms.Button(); 38 | this.SuspendLayout(); 39 | // 40 | // txtProductName 41 | // 42 | this.txtProductName.Location = new System.Drawing.Point(115, 41); 43 | this.txtProductName.Name = "txtProductName"; 44 | this.txtProductName.Size = new System.Drawing.Size(251, 20); 45 | this.txtProductName.TabIndex = 5; 46 | // 47 | // label2 48 | // 49 | this.label2.AutoSize = true; 50 | this.label2.Location = new System.Drawing.Point(36, 44); 51 | this.label2.Name = "label2"; 52 | this.label2.Size = new System.Drawing.Size(73, 13); 53 | this.label2.TabIndex = 4; 54 | this.label2.Text = "Product name"; 55 | // 56 | // txtbPrice 57 | // 58 | this.txtbPrice.Location = new System.Drawing.Point(115, 80); 59 | this.txtbPrice.Name = "txtbPrice"; 60 | this.txtbPrice.Size = new System.Drawing.Size(251, 20); 61 | this.txtbPrice.TabIndex = 7; 62 | this.txtbPrice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbPrice_KeyPress); 63 | // 64 | // label3 65 | // 66 | this.label3.AutoSize = true; 67 | this.label3.Location = new System.Drawing.Point(78, 83); 68 | this.label3.Name = "label3"; 69 | this.label3.Size = new System.Drawing.Size(31, 13); 70 | this.label3.TabIndex = 6; 71 | this.label3.Text = "Price"; 72 | // 73 | // chkActive 74 | // 75 | this.chkActive.AutoSize = true; 76 | this.chkActive.Location = new System.Drawing.Point(115, 122); 77 | this.chkActive.Name = "chkActive"; 78 | this.chkActive.Size = new System.Drawing.Size(56, 17); 79 | this.chkActive.TabIndex = 8; 80 | this.chkActive.Text = "Active"; 81 | this.chkActive.UseVisualStyleBackColor = true; 82 | // 83 | // btnSave 84 | // 85 | this.btnSave.Location = new System.Drawing.Point(291, 159); 86 | this.btnSave.Name = "btnSave"; 87 | this.btnSave.Size = new System.Drawing.Size(75, 23); 88 | this.btnSave.TabIndex = 9; 89 | this.btnSave.Text = "Save"; 90 | this.btnSave.UseVisualStyleBackColor = true; 91 | this.btnSave.Click += new System.EventHandler(this.btnSave_Click); 92 | // 93 | // btnCancel 94 | // 95 | this.btnCancel.Location = new System.Drawing.Point(115, 159); 96 | this.btnCancel.Name = "btnCancel"; 97 | this.btnCancel.Size = new System.Drawing.Size(75, 23); 98 | this.btnCancel.TabIndex = 10; 99 | this.btnCancel.Text = "Cencel"; 100 | this.btnCancel.UseVisualStyleBackColor = true; 101 | this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); 102 | // 103 | // FrmUpdateItem 104 | // 105 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 106 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 107 | this.ClientSize = new System.Drawing.Size(443, 230); 108 | this.Controls.Add(this.btnCancel); 109 | this.Controls.Add(this.btnSave); 110 | this.Controls.Add(this.chkActive); 111 | this.Controls.Add(this.txtbPrice); 112 | this.Controls.Add(this.label3); 113 | this.Controls.Add(this.txtProductName); 114 | this.Controls.Add(this.label2); 115 | this.Name = "FrmUpdateItem"; 116 | this.Text = "Update Item"; 117 | this.Load += new System.EventHandler(this.FrmUpdateItem_Load); 118 | this.ResumeLayout(false); 119 | this.PerformLayout(); 120 | 121 | } 122 | 123 | #endregion 124 | 125 | private System.Windows.Forms.TextBox txtProductName; 126 | private System.Windows.Forms.Label label2; 127 | private System.Windows.Forms.TextBox txtbPrice; 128 | private System.Windows.Forms.Label label3; 129 | private System.Windows.Forms.CheckBox chkActive; 130 | private System.Windows.Forms.Button btnSave; 131 | private System.Windows.Forms.Button btnCancel; 132 | } 133 | } -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/FrmUpdateItem.cs: -------------------------------------------------------------------------------- 1 | using PORTAL.DAL; 2 | using PORTAL.MODEL; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.ComponentModel; 6 | using System.Data; 7 | using System.Drawing; 8 | using System.Linq; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Windows.Forms; 12 | 13 | namespace Simple__CRUD_WithMySql 14 | { 15 | public partial class FrmUpdateItem : Form 16 | { 17 | //create item object 18 | item Item = new item(); 19 | 20 | public FrmUpdateItem() 21 | { 22 | InitializeComponent(); 23 | } 24 | 25 | public FrmUpdateItem(item Itm) 26 | { 27 | InitializeComponent(); 28 | Item = Itm; 29 | } 30 | 31 | private void FrmUpdateItem_Load(object sender, EventArgs e) 32 | { 33 | try 34 | { 35 | txtProductName.Text = Item.ProductName; 36 | txtbPrice.Text = Item.Price.ToString(); 37 | chkActive.Checked = Item.isActive; 38 | } 39 | catch (Exception ex) 40 | { 41 | MessageBox.Show(ex.ToString()); 42 | } 43 | 44 | } 45 | 46 | private void btnCancel_Click(object sender, EventArgs e) 47 | { 48 | this.Close(); 49 | } 50 | 51 | private void btnSave_Click(object sender, EventArgs e) 52 | { 53 | try 54 | { 55 | if (txtbPrice.Text != string.Empty && txtProductName.Text != string.Empty) //check if all fields are filled 56 | { 57 | string isActive = chkActive.Checked ? "1" : "0"; 58 | string sqlQuery = "UPDATE items SET productName = '" + txtProductName.Text + "', productPrice = '" + txtbPrice.Text + "', isActive = '" + isActive + "' WHERE ID = '" + Item.ID + "';"; 59 | 60 | //update data 61 | MySQLconnection con = new MySQLconnection(); 62 | con.Executing(sqlQuery); 63 | 64 | this.Close(); 65 | } 66 | } 67 | catch (Exception ex) 68 | { 69 | MessageBox.Show(ex.ToString()); 70 | } 71 | } 72 | 73 | private void txtbPrice_KeyPress(object sender, KeyPressEventArgs e) 74 | { 75 | if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.')) 76 | { 77 | e.Handled = true; 78 | } 79 | 80 | // only allow one decimal point 81 | if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1)) 82 | { 83 | e.Handled = true; 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/FrmUpdateItem.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 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/Main.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Simple__CRUD_WithMySql 2 | { 3 | partial class Main 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | this.panel1 = new System.Windows.Forms.Panel(); 33 | this.label1 = new System.Windows.Forms.Label(); 34 | this.dgvItems = new System.Windows.Forms.DataGridView(); 35 | this.iDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 36 | this.productNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 37 | this.priceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 38 | this.isActiveDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); 39 | this.Update = new System.Windows.Forms.DataGridViewButtonColumn(); 40 | this.Delete = new System.Windows.Forms.DataGridViewButtonColumn(); 41 | this.itemBindingSource = new System.Windows.Forms.BindingSource(this.components); 42 | this.label2 = new System.Windows.Forms.Label(); 43 | this.txtProductName = new System.Windows.Forms.TextBox(); 44 | this.txtbPrice = new System.Windows.Forms.TextBox(); 45 | this.label3 = new System.Windows.Forms.Label(); 46 | this.label4 = new System.Windows.Forms.Label(); 47 | this.chkActive = new System.Windows.Forms.CheckBox(); 48 | this.btnAdd = new System.Windows.Forms.Button(); 49 | this.panel1.SuspendLayout(); 50 | ((System.ComponentModel.ISupportInitialize)(this.dgvItems)).BeginInit(); 51 | ((System.ComponentModel.ISupportInitialize)(this.itemBindingSource)).BeginInit(); 52 | this.SuspendLayout(); 53 | // 54 | // panel1 55 | // 56 | this.panel1.BackColor = System.Drawing.SystemColors.Highlight; 57 | this.panel1.Controls.Add(this.label1); 58 | this.panel1.Dock = System.Windows.Forms.DockStyle.Top; 59 | this.panel1.Location = new System.Drawing.Point(0, 0); 60 | this.panel1.Name = "panel1"; 61 | this.panel1.Size = new System.Drawing.Size(1116, 64); 62 | this.panel1.TabIndex = 0; 63 | // 64 | // label1 65 | // 66 | this.label1.AutoSize = true; 67 | this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 68 | this.label1.ForeColor = System.Drawing.SystemColors.ButtonFace; 69 | this.label1.Location = new System.Drawing.Point(12, 18); 70 | this.label1.Name = "label1"; 71 | this.label1.Size = new System.Drawing.Size(346, 31); 72 | this.label1.TabIndex = 0; 73 | this.label1.Text = "Simple CRUD Application"; 74 | // 75 | // dgvItems 76 | // 77 | this.dgvItems.AllowUserToAddRows = false; 78 | this.dgvItems.AllowUserToDeleteRows = false; 79 | this.dgvItems.AutoGenerateColumns = false; 80 | this.dgvItems.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 81 | this.dgvItems.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { 82 | this.iDDataGridViewTextBoxColumn, 83 | this.productNameDataGridViewTextBoxColumn, 84 | this.priceDataGridViewTextBoxColumn, 85 | this.isActiveDataGridViewCheckBoxColumn, 86 | this.Update, 87 | this.Delete}); 88 | this.dgvItems.DataSource = this.itemBindingSource; 89 | this.dgvItems.Location = new System.Drawing.Point(18, 166); 90 | this.dgvItems.Name = "dgvItems"; 91 | this.dgvItems.ReadOnly = true; 92 | this.dgvItems.Size = new System.Drawing.Size(1087, 454); 93 | this.dgvItems.TabIndex = 1; 94 | this.dgvItems.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvItems_CellContentClick); 95 | // 96 | // iDDataGridViewTextBoxColumn 97 | // 98 | this.iDDataGridViewTextBoxColumn.DataPropertyName = "ID"; 99 | this.iDDataGridViewTextBoxColumn.HeaderText = "ID"; 100 | this.iDDataGridViewTextBoxColumn.Name = "iDDataGridViewTextBoxColumn"; 101 | this.iDDataGridViewTextBoxColumn.ReadOnly = true; 102 | // 103 | // productNameDataGridViewTextBoxColumn 104 | // 105 | this.productNameDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; 106 | this.productNameDataGridViewTextBoxColumn.DataPropertyName = "ProductName"; 107 | this.productNameDataGridViewTextBoxColumn.HeaderText = "ProductName"; 108 | this.productNameDataGridViewTextBoxColumn.Name = "productNameDataGridViewTextBoxColumn"; 109 | this.productNameDataGridViewTextBoxColumn.ReadOnly = true; 110 | // 111 | // priceDataGridViewTextBoxColumn 112 | // 113 | this.priceDataGridViewTextBoxColumn.DataPropertyName = "Price"; 114 | this.priceDataGridViewTextBoxColumn.HeaderText = "Price"; 115 | this.priceDataGridViewTextBoxColumn.Name = "priceDataGridViewTextBoxColumn"; 116 | this.priceDataGridViewTextBoxColumn.ReadOnly = true; 117 | // 118 | // isActiveDataGridViewCheckBoxColumn 119 | // 120 | this.isActiveDataGridViewCheckBoxColumn.DataPropertyName = "isActive"; 121 | this.isActiveDataGridViewCheckBoxColumn.HeaderText = "isActive"; 122 | this.isActiveDataGridViewCheckBoxColumn.Name = "isActiveDataGridViewCheckBoxColumn"; 123 | this.isActiveDataGridViewCheckBoxColumn.ReadOnly = true; 124 | // 125 | // Update 126 | // 127 | this.Update.HeaderText = "Update"; 128 | this.Update.Name = "Update"; 129 | this.Update.ReadOnly = true; 130 | this.Update.Text = "Update"; 131 | this.Update.UseColumnTextForButtonValue = true; 132 | // 133 | // Delete 134 | // 135 | this.Delete.HeaderText = "Delete"; 136 | this.Delete.Name = "Delete"; 137 | this.Delete.ReadOnly = true; 138 | this.Delete.Text = "Delete"; 139 | this.Delete.UseColumnTextForButtonValue = true; 140 | // 141 | // itemBindingSource 142 | // 143 | this.itemBindingSource.DataSource = typeof(PORTAL.MODEL.item); 144 | // 145 | // label2 146 | // 147 | this.label2.AutoSize = true; 148 | this.label2.Location = new System.Drawing.Point(28, 105); 149 | this.label2.Name = "label2"; 150 | this.label2.Size = new System.Drawing.Size(73, 13); 151 | this.label2.TabIndex = 2; 152 | this.label2.Text = "Product name"; 153 | // 154 | // txtProductName 155 | // 156 | this.txtProductName.Location = new System.Drawing.Point(107, 102); 157 | this.txtProductName.Name = "txtProductName"; 158 | this.txtProductName.Size = new System.Drawing.Size(251, 20); 159 | this.txtProductName.TabIndex = 3; 160 | // 161 | // txtbPrice 162 | // 163 | this.txtbPrice.Location = new System.Drawing.Point(491, 102); 164 | this.txtbPrice.Name = "txtbPrice"; 165 | this.txtbPrice.Size = new System.Drawing.Size(251, 20); 166 | this.txtbPrice.TabIndex = 5; 167 | this.txtbPrice.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtbPrice_KeyPress); 168 | // 169 | // label3 170 | // 171 | this.label3.AutoSize = true; 172 | this.label3.Location = new System.Drawing.Point(454, 105); 173 | this.label3.Name = "label3"; 174 | this.label3.Size = new System.Drawing.Size(31, 13); 175 | this.label3.TabIndex = 4; 176 | this.label3.Text = "Price"; 177 | // 178 | // label4 179 | // 180 | this.label4.AutoSize = true; 181 | this.label4.Location = new System.Drawing.Point(798, 105); 182 | this.label4.Name = "label4"; 183 | this.label4.Size = new System.Drawing.Size(0, 13); 184 | this.label4.TabIndex = 6; 185 | // 186 | // chkActive 187 | // 188 | this.chkActive.AutoSize = true; 189 | this.chkActive.Location = new System.Drawing.Point(804, 105); 190 | this.chkActive.Name = "chkActive"; 191 | this.chkActive.Size = new System.Drawing.Size(56, 17); 192 | this.chkActive.TabIndex = 7; 193 | this.chkActive.Text = "Active"; 194 | this.chkActive.UseVisualStyleBackColor = true; 195 | // 196 | // btnAdd 197 | // 198 | this.btnAdd.Location = new System.Drawing.Point(975, 105); 199 | this.btnAdd.Name = "btnAdd"; 200 | this.btnAdd.Size = new System.Drawing.Size(75, 23); 201 | this.btnAdd.TabIndex = 8; 202 | this.btnAdd.Text = "Add"; 203 | this.btnAdd.UseVisualStyleBackColor = true; 204 | this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); 205 | // 206 | // Form1 207 | // 208 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 209 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 210 | this.ClientSize = new System.Drawing.Size(1116, 632); 211 | this.Controls.Add(this.btnAdd); 212 | this.Controls.Add(this.chkActive); 213 | this.Controls.Add(this.label4); 214 | this.Controls.Add(this.txtbPrice); 215 | this.Controls.Add(this.label3); 216 | this.Controls.Add(this.txtProductName); 217 | this.Controls.Add(this.label2); 218 | this.Controls.Add(this.dgvItems); 219 | this.Controls.Add(this.panel1); 220 | this.Name = "Form1"; 221 | this.Text = "Simple CRUD with MySql"; 222 | this.Load += new System.EventHandler(this.Main_Load); 223 | this.panel1.ResumeLayout(false); 224 | this.panel1.PerformLayout(); 225 | ((System.ComponentModel.ISupportInitialize)(this.dgvItems)).EndInit(); 226 | ((System.ComponentModel.ISupportInitialize)(this.itemBindingSource)).EndInit(); 227 | this.ResumeLayout(false); 228 | this.PerformLayout(); 229 | 230 | } 231 | 232 | #endregion 233 | 234 | private System.Windows.Forms.Panel panel1; 235 | private System.Windows.Forms.Label label1; 236 | private System.Windows.Forms.DataGridView dgvItems; 237 | private System.Windows.Forms.BindingSource itemBindingSource; 238 | private System.Windows.Forms.Label label2; 239 | private System.Windows.Forms.TextBox txtProductName; 240 | private System.Windows.Forms.TextBox txtbPrice; 241 | private System.Windows.Forms.Label label3; 242 | private System.Windows.Forms.Label label4; 243 | private System.Windows.Forms.CheckBox chkActive; 244 | private System.Windows.Forms.Button btnAdd; 245 | private System.Windows.Forms.DataGridViewTextBoxColumn iDDataGridViewTextBoxColumn; 246 | private System.Windows.Forms.DataGridViewTextBoxColumn productNameDataGridViewTextBoxColumn; 247 | private System.Windows.Forms.DataGridViewTextBoxColumn priceDataGridViewTextBoxColumn; 248 | private System.Windows.Forms.DataGridViewCheckBoxColumn isActiveDataGridViewCheckBoxColumn; 249 | private new System.Windows.Forms.DataGridViewButtonColumn Update; 250 | private System.Windows.Forms.DataGridViewButtonColumn Delete; 251 | } 252 | } 253 | 254 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/Main.cs: -------------------------------------------------------------------------------- 1 | using PORTAL.DAL; 2 | using PORTAL.MODEL; 3 | using System; 4 | using System.Data; 5 | using System.Windows.Forms; 6 | 7 | namespace Simple__CRUD_WithMySql 8 | { 9 | public partial class Main : Form 10 | { 11 | public Main() 12 | { 13 | InitializeComponent(); 14 | } 15 | 16 | private void loadTable() //load values to table 17 | { 18 | //clear data grid view 19 | dgvItems.Rows.Clear(); 20 | 21 | DataSet ds = new DataSet(); 22 | MySQLconnection con = new MySQLconnection(); //create connection 23 | 24 | //create sql query for get data 25 | string sqlQuery = "SELECT * FROM items"; 26 | 27 | //Executing 28 | ds = con.LoadData(sqlQuery); 29 | 30 | //check if data data is available 31 | if (ds.Tables[0].Rows.Count == 0) 32 | { 33 | return; 34 | } 35 | 36 | for (int n = 0; n < ds.Tables[0].Rows.Count; n++) //loopping through add data to dgv 37 | { 38 | itemBindingSource.Add(new item 39 | { 40 | ID = ds.Tables[0].Rows[n]["ID"].ToString(), 41 | ProductName = ds.Tables[0].Rows[n]["productName"].ToString(), 42 | Price = Convert.ToDouble(ds.Tables[0].Rows[n]["productPrice"].ToString()), 43 | isActive = Convert.ToBoolean(Convert.ToInt32(ds.Tables[0].Rows[n]["isActive"].ToString())) 44 | }); 45 | } 46 | } 47 | 48 | private void btnAdd_Click(object sender, EventArgs e) 49 | { 50 | try 51 | { 52 | if (txtbPrice.Text != string.Empty && txtProductName.Text != string.Empty) //check if all fields are filled 53 | { 54 | string isActive = chkActive.Checked ? "1" : "0"; 55 | string sqlQuery = "INSERT INTO items (productName, productPrice, isActive ) VALUES ('" + txtProductName.Text + "','" + txtbPrice.Text + "', '" + isActive + "'); "; 56 | 57 | //insert data 58 | MySQLconnection con = new MySQLconnection(); 59 | con.Executing(sqlQuery); 60 | 61 | loadTable(); 62 | } 63 | else 64 | { 65 | MessageBox.Show("Please fill all the fields", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); 66 | } 67 | } 68 | catch (Exception ex) 69 | { 70 | MessageBox.Show(ex.ToString()); 71 | } 72 | } 73 | 74 | private void txtbPrice_KeyPress(object sender, KeyPressEventArgs e) 75 | { 76 | if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.')) 77 | { 78 | e.Handled = true; 79 | } 80 | 81 | // only allow one decimal point 82 | if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1)) 83 | { 84 | e.Handled = true; 85 | } 86 | } 87 | 88 | private void Main_Load(object sender, EventArgs e) 89 | { 90 | try 91 | { 92 | loadTable(); 93 | } 94 | catch (Exception ex) 95 | { 96 | MessageBox.Show(ex.ToString()); 97 | } 98 | } 99 | 100 | private void redirectToUpdateForm(int row) 101 | { 102 | //create item object 103 | item Item = new item 104 | { 105 | //set data 106 | ID = dgvItems.Rows[row].Cells[0].Value.ToString(), 107 | ProductName = dgvItems.Rows[row].Cells[1].Value.ToString(), 108 | Price = Convert.ToDouble(dgvItems.Rows[row].Cells[2].Value.ToString()), 109 | isActive = (bool)dgvItems.Rows[row].Cells[3].Value 110 | }; 111 | 112 | //show form 113 | using (Form frm = new FrmUpdateItem(Item)) 114 | { 115 | frm.ShowDialog(); 116 | } 117 | 118 | //load gridview 119 | loadTable(); 120 | } 121 | 122 | private void deleteData(int row) 123 | { 124 | string ID = dgvItems.Rows[row].Cells[0].Value.ToString(); 125 | string sqlQuery = "DELETE FROM items WHERE ID = '" + ID + "';"; 126 | MySQLconnection con = new MySQLconnection(); 127 | con.Executing(sqlQuery); 128 | //Load Table 129 | loadTable(); 130 | } 131 | 132 | private void dgvItems_CellContentClick(object sender, DataGridViewCellEventArgs e) 133 | { 134 | try 135 | { 136 | switch (e.ColumnIndex) 137 | { 138 | case 4: 139 | redirectToUpdateForm(e.RowIndex); 140 | break; 141 | case 5: 142 | deleteData(e.RowIndex); 143 | break; 144 | 145 | } 146 | } 147 | catch (Exception ex) 148 | { 149 | MessageBox.Show(ex.ToString()); 150 | } 151 | } 152 | } 153 | } 154 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/Main.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 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | True 122 | 123 | 124 | True 125 | 126 | 127 | 17, 17 128 | 129 | 130 | 82 131 | 132 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/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 Simple__CRUD_WithMySql 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 Main()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/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("Simple_ CRUD_WithMySql")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Simple_ CRUD_WithMySql")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 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("3a5161ab-b8d7-4d91-835e-41e00658d7fa")] 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 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/Properties/DataSources/PORTAL.MODEL.item.datasource: -------------------------------------------------------------------------------- 1 |  2 | 8 | 9 | PORTAL.MODEL.item, PORTAL.MODEL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null 10 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/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 Simple__CRUD_WithMySql.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("Simple__CRUD_WithMySql.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 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/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 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/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 Simple__CRUD_WithMySql.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 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/Simple_ CRUD_WithMySql.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {3A5161AB-B8D7-4D91-835E-41E00658D7FA} 8 | WinExe 9 | Properties 10 | Simple__CRUD_WithMySql 11 | Simple_ CRUD_WithMySql 12 | v4.5.2 13 | 512 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 | Form 51 | 52 | 53 | Main.cs 54 | 55 | 56 | Form 57 | 58 | 59 | FrmUpdateItem.cs 60 | 61 | 62 | 63 | 64 | Main.cs 65 | 66 | 67 | FrmUpdateItem.cs 68 | 69 | 70 | ResXFileCodeGenerator 71 | Resources.Designer.cs 72 | Designer 73 | 74 | 75 | True 76 | Resources.resx 77 | 78 | 79 | 80 | SettingsSingleFileGenerator 81 | Settings.Designer.cs 82 | 83 | 84 | True 85 | Settings.settings 86 | True 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | {DDEA84D3-19E5-46C8-B2F9-88E810829BE9} 95 | PORTAL.DAL 96 | 97 | 98 | {035e0b32-5d29-47c5-afa7-7a0b5ee3640d} 99 | PORTAL.MODEL 100 | 101 | 102 | 103 | 110 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/MySql.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/MySql.Data.dll -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/PORTAL.DAL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/PORTAL.DAL.dll -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/PORTAL.DAL.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/PORTAL.DAL.pdb -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/PORTAL.MODEL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/PORTAL.MODEL.dll -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/PORTAL.MODEL.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/PORTAL.MODEL.pdb -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.exe -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.pdb -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.vshost.exe -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/bin/Debug/Simple_ CRUD_WithMySql.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.csproj.CopyComplete: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.csproj.CopyComplete -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\Simple_ CRUD_WithMySql.exe.config 2 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.csprojResolveAssemblyReference.cache 3 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\obj\Debug\Simple__CRUD_WithMySql.Form1.resources 4 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\obj\Debug\Simple__CRUD_WithMySql.Properties.Resources.resources 5 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.csproj.GenerateResource.Cache 6 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\Simple_ CRUD_WithMySql.exe 7 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\Simple_ CRUD_WithMySql.pdb 8 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.DAL.dll 9 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.MODEL.dll 10 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\MySql.Data.dll 11 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.DAL.pdb 12 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.MODEL.pdb 13 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.exe 14 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.pdb 15 | c:\users\shali\documents\visual studio 2015\Projects\Simple_ CRUD_WithMySql\Simple_ CRUD_WithMySql\obj\Debug\Simple__CRUD_WithMySql.FrmUpdateItem.resources 16 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\Simple_ CRUD_WithMySql.exe.config 17 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\Simple_ CRUD_WithMySql.exe 18 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\Simple_ CRUD_WithMySql.pdb 19 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.DAL.dll 20 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.MODEL.dll 21 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\MySql.Data.dll 22 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\Google.Protobuf.dll 23 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.DAL.pdb 24 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\PORTAL.MODEL.pdb 25 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\bin\Debug\MySql.Data.xml 26 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.csprojAssemblyReference.cache 27 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple__CRUD_WithMySql.FrmUpdateItem.resources 28 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple__CRUD_WithMySql.Properties.Resources.resources 29 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.csproj.GenerateResource.cache 30 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.csproj.CoreCompileInputs.cache 31 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.csproj.CopyComplete 32 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.exe 33 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple_ CRUD_WithMySql.pdb 34 | C:\Users\Nirzaf\Source\Repos\SimpleCRUDwithMySQL\Simple_ CRUD_WithMySql\obj\Debug\Simple__CRUD_WithMySql.Main.resources 35 | -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.exe -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple_ CRUD_WithMySql.pdb -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple__CRUD_WithMySql.FrmUpdateItem.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple__CRUD_WithMySql.FrmUpdateItem.resources -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple__CRUD_WithMySql.Main.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple__CRUD_WithMySql.Main.resources -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/Simple__CRUD_WithMySql.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/Simple__CRUD_WithMySql.Properties.Resources.resources -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /Simple_ CRUD_WithMySql/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nirzaf/SimpleCRUDwithMySQL/4be6740ea3d43ae798b7733faa97c493e1bda229/Simple_ CRUD_WithMySql/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs --------------------------------------------------------------------------------