Using Entity Model for connecting the database
When using Entity Model to connect the database, database is connected to the orject as a data model and instances of databse tables are used to perform insert,update,delete and search operations. This is a simple example of a database file connected using Entity Model namespace cecbClasses.Data_Adapters { public class Func_FillMatrix { DSSEntities cecbContext; // This is the databse context LeopoldMatrixValues matrixVal; // This is an variable of a database table public Func_FillMatrix() { cecbContext = new DSSEntities(); } // Inserting values to a database table public bool InsertValues(String impR, String actR, String proR, String impV, String magV) { ...