guyS's WebLog

IShare, My DotNet Fingerprint

Browse by Tags

All Tags » Data Layer Focus » Tips (RSS)
Handling Exceptions in Dal
I like this recommendation text I attached, about the way we should consider to handle our Dal exception/s because its very clear, simple and convincing. The following attach text is from a one of the architecture guide within the Microsoft architecture...
Getting the next page from a store procedure
Here is a the store procedure implementation from "Custom Data Paging in ASP_NET - ASP_NET" article which located on CodeProject Similar code were added to one of the articles I 've just read in MSDN May Magazine. We can use it with a DataGrid custom...
NVARCHAR versus VARCHAR
SQL Server provides both datatypes to store character information. For the most part the two datatypes are identical in how you would work with them within SQL Server or from an application. The difference is that nvarchar is used to store unicode data...
ADO.NET 1.1 advanced webcast highlights
Few highlights from ADO.NET advanced webcast I saw last week: In order to optimize your connection instances to your repository its highly recommended to set the connection pooling settings as part of the connection string The value should adjust carefully...
Posted: Dec 24 2004, 12:19 PM by guyS | with no comments
Filed under: ,
Working with DB Referenece projects
This week I started to experience lots of new stuff. One of them, which was new for me (I apologize for that - this should not happened) and I find it useful, is the work with DB reference in a .NET. DB reference is a DB project template in VS (we use...
Posted: Oct 28 2004, 02:24 AM by guyS | with 1 comment(s)
Filed under: ,
Tip: Using DataTable ExtendedPropeties Colllection
When moving DataTables from tier to tier in our application we can use the DataTable ExtendedProperties as custom data holder at the user level or at the application level instead of moving these data in extra parameters. Fields like ReadOnly, timeSpan...
Posted: Aug 21 2004, 01:59 AM by guyS | with no comments
Filed under: ,
Validate your XML values using XSD schema
The inputs are: string xml, StreamReader schemaReader schemaReader: hold the XSD document with a stream reader XmlTextReader xmlReader = new XmlTextReader(new System.IO.StringReader(xml)); XmlValidatingReader reader = new XmlValidatingReader(xmlReader...
Posted: Aug 21 2004, 01:44 AM by guyS | with no comments
Filed under: ,
More Posts