The most obvious feature of SQL differs from other programming languages is the order in which the code is processed. In a large number programming language, code is processed in encoded order, but in the SQL language, the first processed clause is
This article mainly describes the C # connection to the SQL Server2008 database instance code, the need for friends can refer to the following
Not much nonsense to say, directly to everyone to paste the code, the specific code is as
The previous video tutorial we introduced the ASP. NET Basic tutorial, today to introduce the "dissemination of the wisdom of the Net Intermediate Series video Tutorial" ASP. NET is a Microsoft-led Enterprise Web application development technology
In C #, the array is passed as a parameter,
Principle: control the modification of data as much as possible. If you can predict that a data will not or should not be changed, control it, instead of expecting that the caller who uses the data will
C # List union, intersection, and difference set,
The Union of a set is the item of the merged set, as shown in:
List ls1 = new List() { 1,2,3,5,7,9 };List ls2 = new List() { 2,4,6,8,9,10};IEnumerable unionLs = ls1.Union(ls2);foreach (int item in
C # color folder 2.1.5,
Latest: https://pan.baidu.com/s/1c1FqYqs
For more information, see the official website.MultiColorWinOr http://www.cnblogs.com/QQ81867376/p/6752630.html
A simple example is as follows:
The updates are as follows:
I.
Usage of Dictionary in C,
1. To use the Dictionary set, you need to import the C # Generic namespace
System. Collections. Generic // Assembly: mscorlib
2. Dictionary description
Ing from a group of keys to a group of values. Each add item is
C # detailed description of DataTable,
Add reference
using System.Data;
Create a table
// Create an empty table DataTable dt = new DataTable (); // create an empty table DataTable dt = new DataTable ("Table_New") named "Table_New ");
Create a
C # Use HtmlAgilityPack to capture web page information,
I saw a blog post a few days ago: C # Crawling Novels
The blogger uses a regular expression to obtain the name, directory, and content of a novel.
The following uses HtmlAgilityPack to
For EF database update, update the settings of the specified field, ef Field
1. Set the update field for EF and the new database
When EF is submitted to the database, some fields may not want to be updated, or you can update a model to the
List Distinct () deduplication, objectdistinct
Sometimes we deduplicate the data in a list set. C # provides a Distinct () method that can be clicked directly. If T in list is a custom object, the Distinct effect cannot be achieved for the set
Static constructor,
Let's take a look at a common question. What is the execution result of the following code?
class A{ public static int X = B.Y + 1; static void Main(string[] args) { Console.WriteLine(X); }} class B{
Import data in execl into the database in batches and execl into the database
This article uses the NPOI plug-in to read the data in the execl file and load the data to the DataTable in the memory.1 /// 2 /// convert Excel to able 3 /// 4 /// 5 /
C # Singleton Pattern ),
(The New handwritten blog mainly summarizes his own learning. Will explain a lot of small details .)
Singleton mode definition:
Make sure that a class has only one instance and provides a global access point.
First, we
Net mvc use NPOI to import and export excel and mvcnpoi
1. Export Excel:REFERENCE The NPOI package first (Action must use FileResult)
/// /// batch export the list to be exported /// /// public FileResult ExportStu2 () {// obtain list data var
Basic knowledge that is often misunderstood C,
Misunderstanding of value type and reference type (the reference type is stored on the stack, and the value type is stored on the stack)
When learning C # basic space, I can't escape the value type
C # design mode,
Billing Mode
Make sure that a class has only one instance and provides a global access point to it.
The following code is used:
/// /// single-profit mode class ///// public class interest {/// /// defines a single-profit lock/
C # operate the Registry Windows Registry,
Using System; using System. collections. generic; using System. linq; using System. text; using Microsoft. win32; namespace BugsBox. application. core {public class WindowsRegistry {const string
ArrayList sorting Sort () method (convert), arraylistsort
// Use the Sort method to Sort the elements in the set. Sort has three methods for overloading. The declaration code is as follows. Public void Sort (); // Sort public void Sort (IComparer
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