Distributed using system;//Reference system namespaces
Using system.data.oledb;//references ado.net namespaces
Using system.data;//Reference data space
Using system.runtime.interopservices;//in order to invoke the GUID
Using system.enterpriseservices;//reference COM + name space
Using system.runtime.compilerservices;//compile server at run time
Using system.reflection;//to get a strong Name property with some global properties
Using System.Data.SqlClient;
[Assembly:applicationname ("Comlibrary")]
Strong name file name and file attributes. Generate with Sn.exe, use Sn-k clsstock.snk
[Assembly:assemblykeyfileattribute ("Clsstock.snk")]
[Assembly:assemblykeyname ("Clsstock.snk")]
[Assembly:assemblykeyfileattribute (".. \\.. \\clsStock.snk ")]
[Assembly:assemblykeyname (".. \\.. \\clsStock.snk ")]
Namespace Comlibrary
{
[Transaction (transactionoption.required)]
public class Dboperation:servicedcomponent
{
mycommand = new SqlCommand ();
Mycommand.connection = myconnection;
Return
}
<summary>
Execute One INSERT statement and insert one record into the table
</summary>
<param name= "Connection" >database config infomation
Formatting:datasource= ...; User id= ...; Password= ...
</param>
<returns></returns>
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.