troubleshooting Question

Best Practices Question

Avatar of rock815
rock815 asked on
.NET ProgrammingC#
2 Comments1 Solution446 ViewsLast Modified:
This is more of a question of coding standards.

I'm fairly new to LINQ and have done my first project.  But maybe I'm doing this wrong?

I have 3 projects

1) Web (References the BR project)
2) Business Rules (BR)
3) Data (Basically ONLY the LINQ DBML)

My BR Project is where I do all the methods AddUser, EditUser, etc...

Is this the proper practice?

The problem I'm running into is my BR Adduser takes the param from LINQ Proj.  So BR.AddUser(LINQ.User).  When I call this from the Web project it doesn't have the intellisense unless I reference the LINQ proj too.

Should the BR and LINQ projects be combined?  
Or would I make an object in the BR to handle the LINQ entity so that it works with the Web intellisense?  

Like so:

public class BRUser
    public string Username;
   public string Password;
  public string Name;

And convert BR.Adduser(LINQ.User) to BR.AddUser(BRUser u)

Please advise.  Thanks for your help.
Serves the Most High - Not Religion

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros