Assume there is one entity class.
Using System;
Using System. Xml;
Using System. Xml. Serialization;
Namespace TestPerson
{
Public class Person
{
Public string FullName;
[NonSerialized ()]
Public string Password;
Public Male sex;
}
Public enum
Ado| Object DataSet Construction
This implementation of the N public Sub New () DataSet constructor does not use any parameters, and it creates the default name "NewDataSet" for the new instance.
N Public Sub New (ByVal datasetname as
Ado| Object DataTable Construction
N Public Sub New ()
N Public Sub New (ByVal tablename as String)
n Protected Sub New (ByVal info as SerializationInfo, ByVal context as StreamingContext)
Parameters
1. Info The data required to serialize or
Ado| Object n Overloads public Overridable Function Add (ByVal value as Object) as Integer Implements Ilist.add
n Overloads Public Function Add (ByVal parametername as String,byval value as Object) as OleDbParameter
n Overloads Public Function Add
Ado| Object n Overloads public Overridable Function Add () as DataColumn
n Overloads Public Sub ADD (ByVal column as DataColumn)
n Overloads Public Overridable Function Add (ByVal columnName as String) as DataColumn
n Overloads Public Overridable
Ado| Object OleDbDataAdapter Construction
N Public Sub New ()
N Public Sub New (ByVal SelectCommand as OleDbCommand)
N Public Sub New (ByVal selectcommandtext as String,byval selectconnection as OleDbConnection)
N Public Sub New (ByVal
During the development process, we will certainly have several projects as the basic projects and store some commonly used classes and methods for other projects. in general, after the implementation of the method, I don't want to worry about it
OleDbConnection, OracleConnection, or SqlConnection directly executes SQL statements. The current method of connecting to execute SQL statements is quite different. Next let's take a look at the simple addition, deletion, modification, and query
ADO. NET can process data through DataSet or DataTable objects when disconnected from the database. It can connect to the data source again and update the data source only when data needs to be updated. A DataTable object is a table stored in the
Here I will summarize some things that need attention during my learning process:
1. BecauseObjectqueryIqueryable and ienumerableObjectqueryThe implemented query generator method is combined with a specific standard query operator (such as first
First, WCF directly provides the returned JSON object.
If we do not use WCF, we can use system. runtime. serialization. JSON. datacontractjsonserializer class (system. servicemodel. web. DLL) or system. web. script. serialization.
In WebServices, TimeSpan cannot be used as a system TimeSpan parameter. A new TimeSpan class is generated on the client.
I. Problem Reproduction
Create a Web Method with TimeSpan as the parameter:
1: [WebMethod]
2: public string
Object serialization in. net
Piet ObermeyerMicrosoft Corporation
August 2001
Abstract:Why use serialization? The two most important reasons are: Saving the object state in the storage media so that identical copies can be re-created later; send
A complete and comprehensive object file is of great importance in terms of technical use, technical use, and usage (it is not suitable for personal use ), think about a new employee or a person who takes over your job. There is no file but to look
OleDbConnection, OracleConnection, or SqlConnection directly executes SQL statements. The current method of connecting to execute SQL statements is quite different. Next let's take a look at the simple addition, deletion, modification, and query
When designing Object Inheritance, the parent Object Construction sub-requires some parameters. These parameters can be provided by the sub-Object Construction sub-object through the base keyword.
Namespace test001 {public class parentclass {//
Ado. Net can process data through dataset or datatable objects when disconnected from the database. It can connect to the data source again and update the data source only when data needs to be updated.
A datatable object is a table stored in
Ado| Object n Overloads public Overridable Function Add () as DataTable
n Overloads Public Overridable Sub Add (ByVal table as DataTable)
n Overloads Public Overridable Function Add (ByVal name as String) as DataTable
N Public Sub AddRange (ByVal
ado| objects
Example
Public Sub Createoledbparameter ()
Dim Myparameter as New OleDbParameter ()
Myparameter.parametername = "Description"
Myparameter.oledbtype = OleDbType.VarChar
Myparameter.direction = ParameterDirection.Output
Myparameter.
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.