Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No entry point defined
Message
General information
Forum:
ASP.NET
Category:
Class design
Title:
No entry point defined
Environment versions
Environment:
C# 1.1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01037688
Message ID:
01037688
Views:
67
I've got class that I'm trying to turn into a com+ object, not really sure where to start but I have this so far, but when I try and compile it, it errors with no starting point defined?:
namespace SQL_FOX 
{
	/// <summary>
	/// Summary description for DAL.
	/// </summary>
	
	[Transaction(TransactionOption.RequiresNew)]
	[ObjectPooling(true,5,10)]
	public class DAL : ServicedComponent
	{
		public DAL()
		{
			//
			// TODO: Add constructor logic here
			//
		}
		public DataSet fetch(string cmd,string[] paramaters)
		{
			try
			{
				SqlConnection con = new SqlConnection(connection);
				//string command = "select * from icitem";
				SqlCommand cmd1 = new SqlCommand("select * from icitem",con);
				//cmd1.CommandType = CommandType.StoredProcedure;
				//cmd.Parameters.Add(new SqlParameter("@search_item", SqlDbType.VarChar));
				//cmd.Parameters["@search_item"].Value = search_item;
				SqlDataAdapter fetching = new SqlDataAdapter(cmd1);
				con.Open();
				DataSet fetch = new DataSet("fetch");
				fetching.Fill(fetch, "fetch");
				con.Close();
				return fetch;
			}
			catch (Exception ex)
			{	
				DataSet fetch = new DataSet("fetch");
				string ex1 = ex.ToString();
				return fetch;
			}
		}
	}
}
Next
Reply
Map
View

Click here to load this message in the networking platform