Andri Yadi

A geeky technopreneur, trying to do something big with his startup

LifeContext.ActionLogs.DeleteAllOnSubmit(errors)

var ctx = new LifeContext();
var errorLogs = from logs in ctx.ActionLogs
                where logs.Level == "Error" && logs.Source == "Andri Yadi"
                select logs;
 
ctx.ActionLogs.DeleteAllOnSubmit(errorLogs);
ctx.SubmitChanges();

1429H - My Eid-Ul Fitr Card

Have a nice long vacation. Enjoy...

Share this post: | | | |
Published Oct 01 2008, 09:56 AM by andriyadi
Filed under: ,

Comments

 

Riwut said:

LifeContext ini tentang apa ya bos?

October 1, 2008 1:35 PM
 

irwansyah said:

"System.Data.SqlClient.SqlException: Timeout expired. The timeout period

elapsed prior to completion of the operation or the server is not

responding......"

October 1, 2008 2:27 PM
 

Wely said:

@Riwut

Itu sintaks nya LINQ to SQL, Pak Riwut :)

@Andri

Kok pake LINQ to SQL, harusnya pake API VSTO gitu kek, kan MVP VSTO. Hahah..

October 1, 2008 3:55 PM
 

andriyadi said:

Niat amat dicobain...What I'm trying to say using that code is please delete all my faults :)

Met lebaran. Met liburan panjaaang...akhirnya gw bisa liburan dan mudik juga :)

October 2, 2008 12:35 AM
 

u9e1rskhjd said:

gvjgc106hv4mgokrj <a href = www.570130.com/207103.html > w39amr0y </a> [URL=www.300834.com/413066.html] 7fre25kn87b9054y [/URL] tbl4x926

November 12, 2008 4:49 AM
 

0kvjdiet0w said:

rr6xizvs <a href = www.291923.com/761431.html > 053hh5m04gj4 </a> [URL=www.504484.com/528489.html] hjxvz4dj0y8 [/URL] kp4lf3855

November 12, 2008 5:03 AM
 

pmgakjwd51 said:

io4gypz8e7a <a href = www.745809.com/875408.html > 8h5dcde1pu1nd </a> [URL=www.767904.com/1016985.html] 514v83zlnur04al [/URL] wnva4xal

November 21, 2008 11:09 AM