Free Code Snippets in C#, Net Framework, Office 365, ASP.Net,WPF, Visual Studio, SQL Server, Antivirus free
#
EF: Determine new ID of a data record Net-Framework/ASP_dot_Net-Core/Data-Model/Linq
EF: Determine new ID of a data record
03.04.2018 111
Question: How do you get the new ID of a record that you attach to a table in SQL Server using EF Entity Framework? Solution: You create a blank record from the appropriate MVC data model, fill it with new values โ€‹โ€‹and default values

Asp MVC: Output Data from SQL Server directly to a List Type Net-Framework/ASP_dot_Net-Core/Data-Model/Linq
Asp MVC: Output Data from SQL Server directly to a List Type
03.04.2018 88
Asp MVC: Output Data from SQL Server directly to a List Normal call: Get data with Linq-EF from a database table Disadvantage: the results are of type var and have yet to be manually transferred to a list var

Asp MVC: Format Date as Short Date Net-Framework/ASP_dot_Net-Core/Data-Model
Asp MVC: Format Date as Short Date
22.03.2018 233
How to display a date as a short date in Asp Net MVC? The setting must be automatically displayed in each language so that the automatic national representation of the date appears Here the representation in German: So

Linq: Query data with a left join Net-Framework/ASP_dot_Net-Core/Data-Model/Linq
Linq: Query data with a left join
06.03.2018 151
Linq: Query data with a left join Example of a left join query in Linq

Asp Linq: Collect data with a LINQ query from SQL Server Net-Framework/ASP_dot_Net-Core/Data-Model/Linq
Asp Linq: Collect data with a LINQ query from SQL Server
06.03.2018 144
Asp Linq: Collect data with a LINQ query from SQL Server As a table Fill a table of 20 elements directly from the SQL server data table *fill a Linq Table

InvalidOperationException: The model item passed into the ViewDataDictionary ..requires System.Collections.Generic.IEnumerable Net-Framework/ASP_dot_Net-Core/Data-Model/Data-Errors
InvalidOperationException: The model item passed into the ViewDataDictionary ..requires System.Collections.Generic.IEnumerable
06.03.2018 381
InvalidOperationException: The model item passed into the ViewDataDictionary requires System Collections Generic IEnumerable Error message in the browser An unhandled exception occurre

Asp.Net Core: How to get the ApplicationDbContext in an Asp.Net Core MVC application Net-Framework/ASP_dot_Net-Core/Data-Model
Asp.Net Core: How to get the ApplicationDbContext in an Asp.Net Core MVC application
05.03.2018 339
Asp Net Core: How to get the ApplicationDbContext in an Asp Net Core MVC application If you want to access the SQL Server database in Asp Net MVC Core application, then you need the ApplicationDbContext short dbContext The ApplicationDbContext links the database ser

Asp.Net MVC: retrieve data via SQLClient from SQL Server without EF Entity Framwork ApplicationDbContext Net-Framework/ASP_dot_Net-Core/Data-Model
Asp.Net MVC: retrieve data via SQLClient from SQL Server without EF Entity Framwork ApplicationDbContext
05.03.2018 164
description This example shows how to pick up and edit data directly from SQL Server without using the ApplicationDbContext The problem is often that the handling of the ApplicationDbContext _dbContext is not publicly available The

Asp.Net Mvc: DbContext as interface of a SQL database Net-Framework/ASP_dot_Net-Core/Data-Model
Asp.Net Mvc: DbContext as interface of a SQL database
09.01.2018 322
Asp Net Mvc: DbContext as interface of a SQL database to the Asp Net Core application A connected database is always connected to Asp Net Core Mvc with some kind of bridge or interface This is called DbContext In principle, the Entity Framework DbContext translate

EF: Update Migration Type Mappings. Which C # variable types are to which SQL server field types Net-Framework/ASP_dot_Net-Core/Data-Model
EF: Update Migration Type Mappings. Which C # variable types are to which SQL server field types
09.12.2017 185
Entity Framework, Default, Types In the following I created a model class under ASP Net Core 2 MVC and transferred them via add-migration and update-database to a SQL server The following variables are converted to C # including default defaults on

ASP.Net Core: Create a database from a model class Net-Framework/ASP_dot_Net-Core/Data-Model
ASP.Net Core: Create a database from a model class
08.03.2017 526
ASP Net Core: Create a database from a model class Question: How to create data from a data model as a class Where can I find the Asp Net Core MVC database, which is created in the project? Under Asp Net Core the databases are usually created in

Mobile

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de