Base DBManager File For Db connectivity :
public class BaseDBManager
{
# region Private Members
private string _connectionStringName = "Portal";
private DBManager _objDBAccess = null;
#endregion
# region Properties
public DBManager DBAccess
{
get { return _objDBAccess; }
}
public string ConnectionStringName
{
get
{
return _connectionStringName;
}
set
{
_connectionStringName = value;
}
}
# endregion
#region Constructor
public BaseDBManager(string ConnectionStringNametouse)
{
_objDBAccess = new DBManager(ConnectionStringNametouse);
}
public BaseDBManager()
{
_objDBAccess = new DBManager(ConnectionStringName);
}
public BaseDBManager(BaseDBManager objBaseDAL)
{
_objDBAccess = objBaseDAL.DBAccess;
_objDBAccess.CreatedBy = this;
}
#endregion
}
No comments:
Post a Comment