Creating Data Access Layer For Small Website?
Feb 10, 2011
I am creating my application in asp.net 3.5. I have to make my Data Access layer, in which I am doing the traditional method of fetching/updating the data. Which is SqlConnection than SQLCommand, than SQLadapter. Will there be any other way I can create my DAL layer easily.
Specification.
My website is small. Approx 7-10 pages. Database has around 80 tables.
What I know:
Linq to SQL - I don't want to use it because I am not fully aware about the LINQ statement and I need to develop the application really fast. [3 days :-( ]. Also, there are 100% chances that the table structure will be altered in future. Enterprise Library: It will take too much time for me to integrate to my application.
View 4 Replies
Similar Messages:
Feb 1, 2011
I have written the following functions(1 & 2) in a class file(say abc.vb) to execute a sql statement in code behind.
[Code]....
View 35 Replies
Feb 22, 2011
In my system, the data access layer of one of the website is build using the enterprise library. Now I am developing another [different] website. How can I use the enterprise library to create the data access layer? I am very beginner to Enterprise Library? How can I configure it for my website? Should I have to include the DLL? How it will take the connection string from the Web.Config file?
View 1 Replies
Jun 24, 2010
I am building a web site following the tutorials on asp.net. I am using dataset as data access lay, and writing classes to access the dataset. But the example is just basic ideas, how do I retrieve individual table column value in the business layer?For example, if I have a table called Product, I only want to find out what is the product name by product id. I did this in my ProductBLL:
public ProductBLL
{
public int GetProductName(string productId)
{
ProductDataSet.ProductDataTable prodData = Adapter.GetProductById(productId);
[code]...
Is there a better way, or am I doing this correctly? Can anybody give me a reference to a more complicated business logic model?
View 16 Replies
Jun 3, 2010
here i have in 3-tier architecture , how to pass the data between DAL and BAL. i am using grid view to edit the data,when ever i click on the edit button all the corresponding fields should come to textboxes. i tried for delete ,it works fine bt not working to EDIT.
View 7 Replies
Feb 3, 2010
Iam facing the problem with creating the Data Access layer using Dataset.xsd file and How to access the data from the file.
View 2 Replies
Oct 6, 2010
I have created a database in Access 2007 for a university. Now, a new functionallity is required. What I need to do is a search function where students can search the database online. Now, they can only search using a front-end which is read-only, but they need to use a computer with Microsoft Access (or Runtime) and they need to be connected to the back-end which is located on a server.
make the database to work online? I am a novice to web programming. Which is the easiest way and how do I start?
The database has fields with Attachments. The students can search the database and open Attachments connected to the found posts, this part needs to be online. The personnel can edit and add data using a more complex front-end. This does not need to be online, they can still use Access.
View 2 Replies
May 6, 2010
I am using OLEDB.12.0 to update EXCEL xlsx file. I am getting the error if the data exceeds 255 Characters.I have a very huge aount of data to keep in the fields, how to accomplish this through c# windows application.
View 2 Replies
Aug 25, 2010
In old style i used to return datasets to BOL (From DAL) and then to Website. but in 3.5 is there any new way to construct DAL. i heard about returning List<> is better than DataSet. I Got to build new DAL for my new project. if i should go for List <> aprroach can i use Linq to Sql technique or shall i go for execute dataset (using applicatio block libraries) and then fill data in List<> prior to return it back to BOL.
View 1 Replies
Feb 2, 2010
I want to get the .cs class file that we use when we work with the data base. and then I can just include it in all the files.
it should contain all the information like rundbquery, runstoredproc,runstoredprocwithparams....etc.
View 3 Replies
Nov 1, 2010
I am developing a web application in Visualt Studio 2008. I have a data access layer that is automatically generated using Visual Studio. After publising my site to IIS and tested it for several hours, two exceptions occured:
[Code]....
The connection string is stored in the data access layer in Properties.Settings and has not changed.Does anyone have a clue why these exceptions occur and how i can avoid them?
View 1 Replies
Aug 18, 2010
I have been researching for a while and have actually created a prototype ASP.NET web service as a DAL for a few ASP.NET 2.0 web sites. Just would like to ask for some insight/advice from more experienced developers out there who had successfully rolled out DAL as a web service. What are the drawbacks/risks to deploying DAL as a web service? What is the best way to secure or authenticate consumption of this web service? WCF is out of the question, I'll be coding in VS 2005.
View 4 Replies
Jun 2, 2010
Here is the general idea of what I am trying to accomplish.Upon page load of the aspx, I am dynamically creating a table (that is populated by database information), one of the columns in the table will display a "NotePad" image. When selecting this image, I need it to make a borderless small window pop up with a blank text box inside of it. The user will be writing notes and information in this text box and then selecting a close window button below it to return to the main page. I need to make this as seamless and fluid as possible, so much so that the pop up needs to look like it was still part of the main page when launched. I also will need to require that the user must close the pop up window before returning to the main screen as well.
Using VB.NET, Is there any way to create a pop up window when a specific cell is clicked on (On Click event) , that will display a small (set size) pop up window with it's border but no titlebar, status, menu, etc. That requires the user to click the close button (provided below the textbar) to return to the main screen?I have found numerous posts on pop-ups, title bars, etc, but none have been much help when I try to put it all together.
View 36 Replies
Jun 14, 2010
I've VS2008 and enterprise library 4.1 installed .I want to display few records in the categories table of my NorthWind in my presentation layer through data access layer with enterprise library. I've added references of the following dlls in my data access layer project( which is of type class library)
Microsoft.Practices.EnterpriseLibrary.Common
Microsoft.Practices.EnterpriseLibrary.Data
Microsoft.Practices.ObjectBuilder2
how to access data from the database using datareader , entity beans and rendering data on to presentation layer.
View 2 Replies
May 10, 2010
I'm now reading this article:[URL]But I don't understnad why this is better than just writing code, methods that connects to DB and get from stored procedore what I need.
Why is it better to use so much DataSets for all the tables and more.
View 8 Replies
Sep 21, 2010
I have a potential project where I would be working on developing the "Data Access Layer" of a reporting application using ADO.Net and LINQToSQL.
I have not specifically worked on a Data Access Layer project (middle tier), so I was wondering if anyone here could provide a sample / example / resource, where I can get an idea of what the project entails.
View 1 Replies
Feb 28, 2011
I'm trying to retrive images from SQL (2005) using ASP.NET 2008
At present I have a business object layer and a data access layer to get some data from the database. This works fine but now, i would like to also retrive an image along with the data.
part of my business object layer is shown below, how can i incorporate the image into this.
I have a DLL file which will take care of displaying the image in the web page once i have retrived it.
[Code]....
View 3 Replies
Feb 4, 2011
I am developing a web application, which has Data Access Layer and this layer has only one class, in which all methods are static methods like static Insert, static Update, static Search. It has no properties. I am using these methods in my Bussiness Logic class for my users who are visiting my website.Now my question is : 1. Is it right to use static methods in this scenario ?2. What will happen if 10 users call Insert method at the same time ?
View 3 Replies
Nov 15, 2010
I have created a table adapter in DAL. I have created a gridview in the page and want to fill the gridview with a table data by calling a method. My table has 11 columns but i want to display only 2 columns of the table. My getSong() method has a query as Select title, category from Muisc. But it diaplyas all columns with no data except title and category and the autoincrement primary key column with negative values. The pic is given below. How can i solve it?
View 2 Replies
Jan 27, 2010
I can use similar code below to select a row in my database when I enter a value (username) in text box and it successfully retrieves.however, I'd also like to delete row from database based on the username i enter in text box. My code runs but no row is deleted...my code is:
SQL:
private AdminTableAdapter adminGetUsers;
View 5 Replies
Feb 28, 2011
I am learning on how to create data access layer code for a web site. I want to ensure I am actually connecting to the datasource, so, I am wanting to use a try/catch block within my data access layer class methods. What I am not sure how to handle is a case where the connectionstate is not open. The method should ideally return a datatable. If an error is thrown would I just return an empty datatable? That is my first thought. My other thought is to return an object and pass a datatable if the connection succeeds or the exception if the connection fails.
View 10 Replies
Sep 1, 2010
I am working on a small website for project management.There are around 15 database tables. Since i will be using asp.net 2.0, I wont be able to use LINQ.I need to finish the development of the website in a very quick manner.How do i generate the data access layer automatically. I found NHibernate as one solution, but it seems too difficult for such a small project.
View 2 Replies
May 17, 2010
I was looking to build a Data Access Layer for my new web based application, I'm using ASP.NET. I'm want to build a framework not only for this application but also want to utilize it for my future projects.
Actually my main aim is to make a framework, from DAC, DAL, BL to GUI. I want suggestions from you guys that what should i adopt, what give me flexibility, which suits for both small and large size applications.
View 4 Replies
Aug 8, 2010
I'm building a Data Access Layer for my asp.net application. I would like to be able to share connection between different classes in order to manage transaction, but I don't know how to do that.
Example:
I have 2 classes, Order and OrderDetail.
I will call my DAL Order class for a SQL insert of a new order.
Inside the Insert method, I want to call my OrderDetail class to insert my order's details, and I would do that with same connection and transaction.
View 1 Replies
Apr 13, 2010
I keep all of my code in codeLib.cs and use it on various ASP.NET pages. However, I still have to do the databind(); in the code behind page for each aspx file. How can I eliminate all code in the aspx file so I just have the UI in the aspxand the code and databind(); in codeLib.cs.
View 4 Replies