Software/C#.Net 썸네일형 리스트형 ADO.NET1 The Two faces of ADO.NET Connected Disconnected Understanding ADO.NET Data Provider can access any unique features of a particular DBMS Be able to directly connect to the underlying engine of the DBMS Core Object of an ADO.NET Data Provider Object Base Class Implemented Interfaces Connection DbConnection IDbConnection Provides connect / disconnect object and a related transaction object Command.. 더보기 VB.NET and C# Comparison Program Structure Comments Data Types Constants Enumerations Operators Choices Loops Arrays Functions Strings Regular Expressions Exception Handling Namespaces Classes / Interfaces Constructors / Destructors Using Objects Structs Properties Delegates / Events Generics LINQ New! Console I/O File I/O The original right of this article, you can find in this url page : http://www.harding.edu/fmccown.. 더보기 Serialization Object Graphs The Role of Object Graphs The set of object to serialize is referred to as an OBJECT GRAPH by CLR. Object graphs provide a simple way to document how a set of objects refer to each other and do not necessarily map to classic OO relationships (such as the “is-a” or “has-a” relationship), although they do model this paradigm quite well.(Apress Pro C# 2008-P742) A group of objects to .. 더보기 File Stream To Write Stream Data to a file Encoding Stream data //System.String Write //FileStream.Write() Reset Position //Position Read Again //ReadBytes() Source // Don't forget to import the System.Text and System.IO namespaces. static void Main(string[] args) { Console.WriteLine("***** Fun with FileStreams *****\n"); // Obtain a FileStream object. using(FileStream fStream = File.Open(@"C:\myMessage.dat.. 더보기 File Type // Obtain FileStream object via File.Create(). using(FileStream fs = File.Create(@"C:\Test.dat")) { } // Obtain FileStream object via File.Open(). using(FileStream fs2 = File.Open(@"C:\Test2.dat", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None)) { } // Get a FileStream object with read-only permissions. using(FileStream readOnlyStream = File.OpenRead(@"Test3.dat")) { } // Get a File.. 더보기 .Net Assemblies Consuming a Single-File Assembly 1.Import User library file by click Add Reference menu 2.declare using library-namespace 3 use the types 더보기 Extension Method extension methods allow existing compiled types (specifically, classes, structures, or interface implementations) as well as types currently being compiled (such as types in a project that contains extension methods) to gain new functionality without needing to directly update the type being extended. +extension method must be declared with the static keyword +all extension methods are marked as.. 더보기 Custom Type Conversions Explicit vs Implicit Explicit Implicit Rectangle r = new Rectangle(10,4); Square s = (Square)r; Square s1 = new Square(); Rectangle r2 = s1; explicit two different types conversion In Main method line 14 is impossible in general. Of course, if convert to Object type, it is possible. but in here, to do that, C# uses explicit operator ( see square class line 28). it is declared by static method. i.. 더보기 Indexer Methods Overloading DataTable objects indexer ptTwo : {0}", ptOne > ptTwo); Console.ReadLine(); } } } 더보기 [ADO.NET] Architecture ◎Below Image from MSDN ▣ADO.NET Components ◎.NET Framework Data Provider ▷Designed for data manipulation and fast, forward-only, read-only access to data ▷ADO.NET supports multiple data providers ▷Data Connection Object : connectivity to a data source ▶Transaction ▷Data Command Object : enables access to database commands to return data, modify data, run stored procedures, and send or retrieve p.. 더보기 이전 1 2 3 4 다음