Code Monkey home page Code Monkey logo

patternsandpractices's Introduction

PatternsAndPractices Class Libraries:

KeyConfig\ConfigurationManagement

Microsoft.ApplicationBlocks.ConfigurationManagement

Microsoft.ApplicationBlocks.Data

Microsoft.ApplicationBlocks.ExceptionManagement

Microsoft.ApplicationBlocks.UIProcess

This is the tried-and-true "Patterns and Practices" VB.Net wrapper for SQL.

Although old, it still remains a useful wrapper for doing those repeated operations with System.Data.SQLClient

Also included are the configuration management, exception management, and UI Process libraries.

Favorite SQL operations include:

Execute a SQL command with no results expected:

SqlHelper.ExecuteNonQuery(myConnectionString, CommandType.StoredProcedure, strSQL, params)

Run a SQL command and put the results in a DataSet (or any number of DataTables in a DataSet):

Dim ds As DataSet = SqlHelper.ExecuteDataset(myConnectionString, CommandType.StoredProcedure, strSQL, params)

Run a SQL command that returns a single integer value

UserCt = CInt(SqlHelper.ExecuteScalar(myConnectionString, CommandType.Text, "SELECT count(*) FROM mytable"))

Can be compiled as VB.Net, but then used by other languages such as C# (see included C# WebDemo app)

Code was was freeware from Microsoft, but apparently no longer supported / available.

'===============================================================================' Microsoft Configuration Management Application Block for .NET http://msdn.microsoft.com/library/en-us/dnbda/html/cmab.asp

AssemblyInfo.vb

This file contains the the definitions of assembly level attributes.

For more information see the Configuration Management Application Block Implementation Overview.

'===============================================================================' Copyright (C) 2000-2001 Microsoft Corporation All rights reserved. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. '=============================================================================='

'===============================================================================' Microsoft User Interface Process Application Block for .NET http://msdn.microsoft.com/library/en-us/dnbda/html/uip.asp

AssemblyInfo.vb

For more information see the User Interface Process Application Block Implementation Overview.

'===============================================================================' Copyright (C) 2000-2001 Microsoft Corporation All rights reserved. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. '=============================================================================='

patternsandpractices's People

Contributors

dependabot[bot] avatar gojimmypi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.