Implement interfaces for use ForEach ;)

Data Access Application Blocks Forum

Implement interfaces for use ForEach ;)

Postby HardBit on Fri Feb 08, 2008 4:18 pm

Customer customer = new Customer();
customer.Where.IdCustomer.Value = 19;
customer.Query.Load();

foreach (Customer custom in customer)
{
Console.WriteLine(custom.Description);
}

Also they can continue using do while

do {
Console.WriteLine(custom.Description);
} while (customer.MoveNext());

:wink:

Change of SourceCode here
Binary here
HardBit
Lurker
 
Posts: 5
Joined: Thu Jan 17, 2008 7:21 pm

Postby mgnoonan on Fri Feb 08, 2008 7:28 pm

Nice job, HardBit! 8)
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH

Postby ufoq on Mon Feb 11, 2008 8:11 pm

That's awesome...

Any chance of merging into main tree in the future updates?
ufoq
Private First Class
 
Posts: 14
Joined: Wed Apr 11, 2007 1:28 pm

Postby mgnoonan on Tue Feb 12, 2008 4:31 am

With his permission, I would say a very good chance!
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH

I can't download the modified source code

Postby devsen on Wed Feb 20, 2008 4:22 pm

where I can se the modifications to easyobjects in order to use the foreach, the link:

http://www.hard-bit.net/files/source/EasyObject.cs

is broken

thanks
devsen
Lurker
 
Posts: 1
Joined: Wed Feb 20, 2008 3:45 pm

Postby mgnoonan on Wed Feb 20, 2008 7:31 pm

You'll have to try sending hard-bit a PM (private message).
Matt Noonan
EasyObjects.NET - The O/RM for the Enterprise Library
http://www.easyobjects.net
User avatar
mgnoonan
Expert
 
Posts: 1019
Joined: Tue Sep 14, 2004 3:17 am
Location: Springboro, OH

Re: I can't download the modified source code

Postby HardBit on Wed Feb 20, 2008 9:07 pm

devsen wrote:where I can se the modifications to easyobjects in order to use the foreach, the link:

http://www.hard-bit.net/files/source/EasyObject.cs

is broken

thanks



Sorry :oops:

You can download changes (binary and source) in this post
HardBit
Lurker
 
Posts: 5
Joined: Thu Jan 17, 2008 7:21 pm


Return to EasyObjects.NET (Microsoft Enterprise Library)

Who is online

Users browsing this forum: No registered users and 1 guest