how can i learn Enterprise library 4.0 ?
Posted
by ykaratoprak
on Stack Overflow
See other posts from Stack Overflow
or by ykaratoprak
Published on 2010-03-20T18:05:42Z
Indexed on
2010/03/20
18:11 UTC
Read the original article
Hit count: 301
I try to learn Enterprise Library. i find these useful codes to get data from sql. But i try to send data via parameter. also use UPDATE, DELETE, SAVe method. Do you give sama sample? i'm using enterprise 4.0 !!!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;
namespace WebApplicationForEnterpirires
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Database objdbase = DatabaseFactory.CreateDatabase("connectionString");
DataSet ds = objdbase.ExecuteDataSet(CommandType.StoredProcedure, "sp_GetProducts");
GridView1.DataSource = ds;
GridView1.DataBind();
}
}
}
© Stack Overflow or respective owner