Download as pdf
Download as pdf
You are on page 1of 22
Methods- A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. Method overloading and method overriding- Overloading is the ability to have multiple methods within the same class with the same name, but with different parameters. Overriding is known as compile-time (or static) polymorphism because each of the different overloaded methods is resolved when the application is compiled. Opps concept---- Encapsulation--Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it manipulates. In a different way, encapsulation is a protective shield that prevents the data from being accessed by the code outside this shield.. Polymorphism---Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance... Inheritance---Inheritance is one of the fundamental attributes of object-oriented programming. It allows you to define a child class that reuses (inherits), extends, or modifies the behavior of a parent class. The class whose members are inherited is called the base class. Abstraction---Abstraction is the process of hiding the internal details of an application from the outer world. Abstraction is used to describe things in simple terms. It's used to create a boundary between the application and the client programs... Routing---In MVC, routing is a process of mapping the browser request to the controller action and return response back. Each MVC application has default routing for the default HomeController. We can set custom routing for newly created controller. The RouteConfig Primary key--Unique key The primary key is accepted as a unique or sole identifier for every record in the table. In the case of a primary key, we cannot save NULL values. In the case of a unique key, we can save a null value, however, only one NULL value is supported. It supports entity integrity. Foreign key---A FOREIGN KEY is a field (or collection of fields) in one table, that refers to the PRIMARY KEY in another table. The table with the foreign key is called the child table, and the table with the primary key is called the referenced or parent table. What is MVC---The Model-View- Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller MVC Return type-There are 7 types of content returning results: e ViewResult. e PartialViewResult. ContentResult. EmptyResult. FileResult. JsonResult. JavaScriptResult. What is Entity Framework---Entity Framework is an Object Relational Mapper (ORM) which is a type of tool that simplifies mapping between objects in your software to the tables and columns of a relational database. HTTP METHODS----- GET is used to request data froma specified resource. Note that the query string (name/value pairs) is sent in the URL of a GET request: POST is used to send data to a server to create/update a resource. The data sent to the server with POST is stored in the request body of the HTTP request: PUT is used to send data to a server to create/update a resource. The difference between POST and PUT is that PUT requests are idempotent. That is, calling the same PUT request multiple times will always produce the same result. In contrast, calling a POST request repeatedly have side effects of creating the same resource multiple times. HEAD is almost identical to GET, but without the response body. In other words, if GET /users returns a list of users, then HEAD /users will make the same request but will not return the list of users. HEAD requests are useful for checking what a GET request will return before actually making a GET request - like before downloading a large file or response body. IDENTITY COLUMN---Identity columns can be used for generating key values. The identity property on a column guarantees the following: Each new value is generated based on the current seed & increment. CONTROLLER-Controllers process incoming requests using action methods. Action methods typically have a one-to- one mapping with user interactions. When a user enters a URL into the browser, the MVC application uses routing rules that are defined in the Global. asax file to parse the URL and to determine the path of the controller.. CONSTRAINT---SQL constraints are used to specify rules for the data in a table. Constraints are used to limit the type of data that can go into a table. This ensures the accuracy and reliability of the data in the table. If there is any violation between the constraint and the data action, the action is aborted CONSTRUCTOR----In C#, constructor is a special method which is invoked automatically at the time of object creation. It is used to initialize the data members of new object generally. The constructor in C# has the same name as class or struct. There can be two types of constructors in C#. DATA ANNOTATION---Data annotations (available as part of the System. ComponentModel. DataAnnotations namespace) are attributes that can be applied to classes or class members to specify the relationship between classes, describe how the data is to be displayed in the Ul, and specify validation rules VIEWBAG---In general, ViewBag is a way to pass data from the controller to the view. It is a type object and is a dynamic property under the controller base class. Compared to ViewData, it works similarly but is known to be a bit slower and was introduced in ASP.NET MVC 3.0 VIEWDATA----In MVC, when we want to transfer the data from the controller to view, we use ViewData. It is a dictionary type that stores the data internally. ViewData contains key-value pairs which means each key must be a string ina dictionary. TEMPDATA---TempData is used to transfer data from view to controller, controller to view, or from one action method to another action method of the same or a different controller. TempData stores the data temporarily and automatically removes it after retrieving a value. TempData is a property in the ControllerBase class STORED PROCEDURE---Stored Procedures are coding blocks in the database server. It is a pre-compiled entity, i.e., it is compiled at once and can be used repeatedly. Stored procedures provide faster code execution and reduce network traffic Action Result ----An action result is what a controller action returns in response to a browser request. The ASP.NET MVC framework supports several types of action results including: ViewResult - Represents HTML and markup. EmptyResult - Represents no result. Action Filter----ASP.NET MVC provides Action Filters for executing filtering logic either before or after an action method is called. Action Filters are custom attributes that provide declarative means to add pre- action and post-action behavior to the controller's action methods. Data annotations types---Here are the numerous types of Data Annotations with the syntax: e 1) DataType. This attribute is used to specify the data type of the model. ... e 2) Required. This attribute defines the particular value as mandatory for a certain requirement. ... e 3) StringLength. ... e 4) MaxLength. ... e 5) Range.... e 6)Bind.... e 7) DisplayFormat. ... e 8) DisplayName. Scaler property and navigation property--- e Scalar Property. Scalar properties are those properties that are primitive. It maps a column in a database table that stores the data. ... e Navigation Property. This property is responsible for the relationship of one entity to another. What is database---In computing, a database is an organized collection of data stored and accessed electronically. Small databases can be stored on a file system, while large databases are hosted on computer clusters or cloud storage What is dbms----A database management system (or DBMS) is essentially nothing more than a computerized data-keeping system. Users of the system are given facilities to perform several kinds of operations on such a system for either manipulation of the data in the database or the management of the database structure itself. SQL ----Structured query language (SQL) is a programming language for storing and processing information in a relational database What is ling----Language-Integrated Query (LINQ) is the name for a set of technologies based on the integration of query capabilities directly into the C# language. Traditionally, queries against data are expressed as simple strings without type checking at compile time or IntelliSense support. What is ddl--Data Definition Language (DDL) is a subset of SQL. It is a language for describing data and its relationships ina database. You can generate DDL ina script for database objects to: Keep a snapshot of the database structure. Set up a test system where the database acts like the production system but contains no data. Ex--CREATE, ALTER, and DROP What is dml---A DML (data manipulation language) refers to a computer programming language that allows you to add (insert), delete (delete), and alter (update) data in a database Joins---As known, there are five types of join operations: Inner, Left, Right, Full and Cross joins. Cross join---CROSS JOINs are used to combine each row of one table with each row of another table, and return the Cartesian product of the sets of rows from the tables that are joined. Inner join---Inner joins combine records from two tables whenever there are matching values in a field common to both tables Left join---The LEFT JOIN keyword returns all records from the left table (table1), and the matching records from the right table (table2). The result is O records from the right side, if there is no match. Right join--The RIGHT JOIN command returns all rows from the right table, and the matching records from the left table. The result is NULL from the left side, when there is no match Full join--The FULL OUTER JOIN keyword returns all records when there is a match in left (table1) or right (table2) table records. Outer Join--Outer joins are joins that return matched values and unmatched values from either or both tables. There are a few types of outer joins. Scaffolding template--Scaffold templates are used to generate code for basic CRUD operations within your ASP.NET MVC applications against your database with the help Entity Framework. These templates use the Visual Studio T4 templating system to generate views for basic CRUD operations with the help of Entity Framework What is opps--Object- oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field that has unique attributes and behavior. What is interface---An interface defines a contract. Any class or struct that implements that contract must provide an implementation of the members defined in the interface. An interface may define a default implementation for members. It may also define static members in order to provide a single implementation for common functionality. Ado.net--ADO.NET is a set of classes that expose data access services for . NET Framework programmers. ADO.NET provides a rich set of components for creating distributed, data-sharing applications. It is an integral part of the . NET Framework, providing access to relational, XML, and application data. ACTIVE DATA OBJECTs Asp.net---Active Server Pages Network Enabled Technologies ASP.NET stands for Active Server Pages Network Enabled Technologies. In 2002, Microsoft released the first version of the ASP.NET framework. It was based on the CLR (Common Language Runtime), which enables developers to build ASP.NET applications in different . NET supported languages including C#, F#, and VB.NET. 12- What is web api--What Is C# Web API? ASP.NET Web API is a robust framework for developing HTTP-enabled service APIs that expose services and data. It may be accessed by a wide range of clients, including browsers, mobile devices, desktop computers, and tablets. Because it is an HTTP service, it may reach many clients What is framework---NET Framework is used to create and run software applications. . NET apps can run on many operating systems, using different implementations of .NET. . NET Framework is used for running .NET apps on Windows What is class--A class is a data structure in C# that combines data variables and functions into a single unit. Instances of the class are known as objects. While a class is just a blueprint, the object is an actual instantiation of the class and contains data. The different operations are performed on the object What is object--An object is basically a block of memory that has been allocated and configured according to the blueprint. A program may create many objects of the same class. Objects are also called instances, and they can be stored in either a named variable or in an array or collection

You might also like