V
VicToro
Hi all,
I created a Class defined as:
public class GenericDataAccess<T> : DataAccessObject<T> where T :
DBObject
This is my base class. I reuse it in every project. Now, in a
particular project I have another class:
public class DataAccess<T>: GenericDataAccess<T> where TBObject
This last class have methods as:
public static List<T> getAll()
public static T getOne()
....
I also have one method called:
public static bool IsLogin(string userName, string password)
I would like to make this method accesible just for one class, that is
called User and inherits from DBObject.
But I do not want it to be accesible for the rest of the classes that
inherit from DBObject (i.e. Role, Apartment...)
Any idea of how can I implement my idea?
Thanks in advance
I created a Class defined as:
public class GenericDataAccess<T> : DataAccessObject<T> where T :
DBObject
This is my base class. I reuse it in every project. Now, in a
particular project I have another class:
public class DataAccess<T>: GenericDataAccess<T> where TBObject
This last class have methods as:
public static List<T> getAll()
public static T getOne()
....
I also have one method called:
public static bool IsLogin(string userName, string password)
I would like to make this method accesible just for one class, that is
called User and inherits from DBObject.
But I do not want it to be accesible for the rest of the classes that
inherit from DBObject (i.e. Role, Apartment...)
Any idea of how can I implement my idea?
Thanks in advance