Entity Framework(EF) Code First Multi-to-Multi Relational Entities Add, Delete, Change, Check Detailed Examples of Operation

In this article, we will learn how to use Context to delete many-to-many relational entities in the Entity Framework. We will use a small console instance to understand and learn the whole process of entity deletion in Entity Framework. You will learn How to create a project that references Entity Framework? How to configure the da ...

Posted by coffeecup on Wed, 12 Dec 2018 06:42:06 -0800

LNMP architecture (Nginx anti-theft chain, Nginx access control, Nginx parsing php-related configuration, Nginx proxy)

Nginx Anti-theft Chain 1. Edit the virtual host file / usr/local/nginx/conf/vhost/test.com.conf and add the following code location ~* ^.+\.(gif|jpg|png|swf|flv|rar|zip|doc|pdf|gz|bz2|jpeg|bmp|xls)$ { expires 7d; valid_referers none blocked server_names *.test.com ; #Here the server_names configuration can be omitted if ($invalid_r ...

Posted by Drebin on Tue, 11 Dec 2018 05:21:07 -0800

ASP.NET MVC logs using Log4net

Log4net introduction Log4net, Apache's next open source project, is a clone of Log4j. We can control the destination of log information output. Log4net defines a variety of log information output modes. It can output logs to console, text files, windows log event viewer, including database, mail and other locations, so that we can quickly trac ...

Posted by kgahn on Tue, 11 Dec 2018 03:42:05 -0800

Java web Front-end: JavaScript DOM, BOM, Timing Functions

DOM of JavaScript JavaScript mainly includes three parts: ECMAScript, DOM and BOM. 1.1 DOM overview Through HTML DOM, all elements of HTML documents are accessed using JavaScript. When a web page is loaded, the browser creates a Document Object Model for the page. The HTML DOM model is constructed as a tree of objects: Th ...

Posted by rocket on Tue, 11 Dec 2018 01:33:05 -0800