EF cascading deletion, ef-levelIntroduction
If a Key is specified in the primary table and Required is specified in the subtable, a foreign Key for cascading deletion is not generated in the database. So how can we make EF generate a cascade
Use RadioButtonFor and mvcradiobuttonfor in MVC
1. initialize
model. TypeState, 0, new {@ id = "radio2", @ name = "rdolstState"}) %> Enabled model. typeState, 1, new {@ id = "radio1", @ name = "rdolstState", @ checked = true}) %> disable
Note: The
MachineKey operation-generating MachineKey and ssomachinekey for SSO applications in the application ClusterMachineKey Introduction
MachineKey is used to encrypt and decrypt Forms authentication Cookie data and view status data. Generally, IIS
Ajax WebService access method, ajaxwebservice
If you want to use ajax for access, first set it in web. config.
Add
under a node
In this way, you can access it through a url. Otherwise, an error will be reported.
Then directly highlight the Code.
Get a developer license for windows store app (), license
Developer licenses are free, and you can get as soon as you need so that all your test machines have one. if you get one or more developer licenses by using a Microsoft account, you must
[Asp.net 5] DependencyInjection project code analysis 4-Microsoft's implementation (I ),
In the previous two implementations, many internal details are unknown. Microsoft's framework is also designed to block specific implementations, so we can only
Project Summary-MVC + MongoDB implements file upload and mvcmongodb
During the project, we encountered video upload problems. Before the project is officially started, a simple Demo is provided to implement the video file in MVC.
Upload, taking into
How to Use T [] or List in C,
If a group of data needs to be stored, does it use T [] or select List ?
First, let's look at the array.
All Array types are implicitly derived from the abstract class System. Array, and System. Array is
[Tool] cleans Windows Installer redundant files (64-bit NT6.x system supported), installernt6.xAppearance:
Supported systems:
Windows NT 5.x/ 6.x 32 and 64-bit all systems. The. net framework 2.0 runtime environment is required.Function:
Clear
A piece of code every day-Decorator pattern, decoratorpatternKnowledge Point
Class should be open to the extension and closed to the modification.Case
(This story is purely fictitious)
On the morning of that day, Ruian just submitted the newly
Asp.net connection to Access through the configuration file
This example describes how to connect asp.net to Access through the configuration file. Share it with you for your reference. The specific analysis is as follows:
Here, the Database blog.
MachineKey operation-obtain MachineKey and machinekeyIntroduction to obtaining MachineKey
Configure the MachineKey to encrypt and decrypt the Cookie data and view status data for Forms authentication, and use it to verify the non-process session
Web Service Server reference, webservice
1. Let's talk about the server reference first.
First write a Web Service file
Create a web project or website and add a new project
Create a web Service
The following page is displayed.
Run and
Foreach's understanding
First, what kind of data can be used to implement foreach?
1. Implement the IEnumerable interface.
2. GetEnumerable () is available.
Then, you can implement foreach traversal by implementing this interface or using this
Take a note every day-Observer pattern, observerpatternKnowledge Point
Make the objects loosely coupled.
The observer mode defines the one-to-many relationship between objects. The topic uses a common interface to update the observer.
The observer
The odd tricks of web. config, web. config
External file db. config:
Specific format
Notes1. if configSource is specified, the external files shall prevail. the node configuration under connectionStrings in config is invalid,
Debug Diagnostics Tool creates. Net exception dump and uses Windbg to analyze exceptions. diagnosticswindbg
When we want to analyze exceptions in the iis prd environment and have no clue about the problem, we do not have the permission to directly
C # super simple Telnet (TcpClient) client,
Based on Sockets
Nothing to say, the code shows all1 using System; 2 using System. collections. generic; 3 using System. linq; 4 using System. text; 5 using System. net. sockets; 6 using System. IO; 7 8
. NET Framework object-oriented layered personal thinking,. net Object-Oriented
Summarized as follows:
Public Layer
Code is public and independent from third-party DLL and business logic
Logic layer
1. The code is public and related to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service