Click here to Skip to main content
15,890,186 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Insurance Tax increasing Pin
fjdiewornncalwe27-Oct-10 3:02
professionalfjdiewornncalwe27-Oct-10 3:02 
GeneralRe: Insurance Tax increasing Pin
Danpeking27-Oct-10 3:33
Danpeking27-Oct-10 3:33 
GeneralRe: Insurance Tax increasing Pin
fjdiewornncalwe27-Oct-10 3:45
professionalfjdiewornncalwe27-Oct-10 3:45 
GeneralRe: Insurance Tax increasing Pin
Keith Barrow27-Oct-10 3:50
professionalKeith Barrow27-Oct-10 3:50 
GeneralRe: Insurance Tax increasing [modified] Pin
Danpeking27-Oct-10 4:32
Danpeking27-Oct-10 4:32 
QuestionRepository pattern Pin
Mogamboo_Khush_Hua27-Oct-10 1:13
Mogamboo_Khush_Hua27-Oct-10 1:13 
AnswerRe: Repository pattern Pin
Not Active27-Oct-10 1:38
mentorNot Active27-Oct-10 1:38 
GeneralRe: Repository pattern Pin
Mogamboo_Khush_Hua27-Oct-10 2:09
Mogamboo_Khush_Hua27-Oct-10 2:09 
I have already viewed both articles and is of no use to me. If you look below article of code project, you will know that code is written for linq to sql but how can i convert it using entlib 5.0 persistence methodology.

<a href="http://www.codeproject.com/KB/architecture/linqrepository.aspx?fid=1382161&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;fr=26#xx0xx">Implementing the Repository Pattern with LINQ-to-SQL</a>[<a href="http://www.codeproject.com/KB/architecture/linqrepository.aspx?fid=1382161&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;fr=26#xx0xx" target="_blank" title="New Window">^</a>]

For eg, In the below article for GetAll method of IRepository,

IEnumerable<T> FindAll(Func<T, bool> exp);



same thing i do using entlib 5.0

public static CustomerResponseLogCollection FindAll(int orderID)
       {
           Database db = EmersonDataHelper.CreateConnection();
           CustomerResponseLogCollection customerResponseLogs = new CustomerResponseLogCollection();

           var c = db.ExecuteSprocAccessor<CustomerResponseLog>(ConstantsDB.USPGetResponseLogsByOrderID, orderID).ToList();

           foreach (CustomerResponseLog item in c)
           {
               customerResponseLogs.Add(item);
           }

           return customerResponseLogs;
       }

AnswerRe: Repository pattern Pin
Keith Barrow27-Oct-10 1:48
professionalKeith Barrow27-Oct-10 1:48 
QuestionSmall straight line displayed on web application Pin
Arudya26-Oct-10 22:12
Arudya26-Oct-10 22:12 
AnswerRe: Small straight line displayed on web application [modified] Pin
Keith Barrow26-Oct-10 22:42
professionalKeith Barrow26-Oct-10 22:42 
AnswerRe: Small straight line displayed on web application Pin
fjdiewornncalwe27-Oct-10 3:05
professionalfjdiewornncalwe27-Oct-10 3:05 
QuestionInserting in Multi table With one Store Procedure Pin
future383926-Oct-10 12:27
future383926-Oct-10 12:27 
AnswerRe: Inserting in Multi table With one Store Procedure Pin
m@dhu26-Oct-10 22:41
m@dhu26-Oct-10 22:41 
AnswerRe: Inserting in Multi table With one Store Procedure Pin
Brij27-Oct-10 1:29
mentorBrij27-Oct-10 1:29 
Questionmasked textbox for date entry. Pin
Asif Rehman26-Oct-10 5:13
Asif Rehman26-Oct-10 5:13 
AnswerRe: masked textbox for date entry. Pin
Keith Barrow26-Oct-10 7:15
professionalKeith Barrow26-Oct-10 7:15 
AnswerRe: masked textbox for date entry. Pin
Abhijit Jana26-Oct-10 7:35
professionalAbhijit Jana26-Oct-10 7:35 
QuestionConvert GridView To DataTable Pin
treuveni26-Oct-10 0:47
treuveni26-Oct-10 0:47 
AnswerRe: Convert GridView To DataTable Pin
Abhijit Jana26-Oct-10 0:53
professionalAbhijit Jana26-Oct-10 0:53 
AnswerRe: Convert GridView To DataTable Pin
Blue_Boy26-Oct-10 1:03
Blue_Boy26-Oct-10 1:03 
AnswerRe: Convert GridView To DataTable Pin
Anurag Gandhi26-Oct-10 2:49
professionalAnurag Gandhi26-Oct-10 2:49 
QuestionDropdownlist Shows defaultvalue when bound to sqldatasource. Pin
Asif Rehman26-Oct-10 0:04
Asif Rehman26-Oct-10 0:04 
AnswerRe: Dropdownlist Shows defaultvalue when bound to sqldatasource. Pin
Abhijit Jana26-Oct-10 0:57
professionalAbhijit Jana26-Oct-10 0:57 
GeneralRe: Dropdownlist Shows defaultvalue when bound to sqldatasource. Pin
Asif Rehman26-Oct-10 1:01
Asif Rehman26-Oct-10 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.