Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please guys help me i am using three tire architecture
and i am using dataset
i am showing
step one (Contract Class Library )

C#
public class Authentication
    {
        public Guid ID { get; set; }
        public string UserName { get; set; }
        public string Name { get; set; }
        public string Password { get; set; }
        public Char? Role { get; set; }
    }


Step two (Data Class Library)
where i used interface and data class

C#
public interface IAuthenticationRepository
    {
   DataSet  SaveAuthentication(KENTCRM.Contract.AuthenticationobjAuthentication);
    }

and
C#
public class AuthenticationRepository:IAuthenticationRepository,IDisposable
   {
      public DataSet SaveAuthentication(KENTCRM.Contract.Authentication objAuthentication)
      {
          DataSet dt = new DataSet();
          return dt;
      }


Three Step is Business class Library

C#
public DataSet SaveAuthentication(KENTCRM.Contract.Authentication objAuthentication)
      {
          using (AuthenticationRepository obj = new AuthenticationRepository())
          {
             return obj.SaveAuthentication(objAuthentication);
          }
      }


this is my architecture
but i am not able to use business class please check and help me . how i can use business call and what is the right way
if it is possible so show me right architecture with data set
i want to create login page and insert ,update and delete

[edit]Code blocks added - OriginalGriff[/edit]
Posted
Updated 14-Mar-12 7:03am
v2
Comments
Sergey Alexandrovich Kryukov 14-Mar-12 12:55pm    
"Three tire architecture"? It must be a 3-wheel bike.

Yes, I guess their architectures have some problems, but hardly a problem of authentication :-)
--SA
Ed Nutting 14-Mar-12 15:17pm    
Oh don't yank his chain... ;-P
Sergey Alexandrovich Kryukov 14-Mar-12 19:25pm    
:-)
Herman<T>.Instance 15-Mar-12 4:44am    
he might have one flat tire
Sergey Alexandrovich Kryukov 15-Mar-12 21:39pm    
Flat architecture could be even worse than that... :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900