brucezhang.wordpress.com
A Common Base Class for LINQ To SQL | Geek Talk
https://brucezhang.wordpress.com/2009/05/19/base-class-linq2sql
Bruce Zhang’s Space. A Common Base Class for LINQ To SQL. Leave a comment ». In LINQ to SQL, all variables in the Data Model of a relational database can be strongly typed, which provides the benefit of compile-time validation and IntelliSense. We can fetch the data from the database using a query expression (it includes query syntax and method syntax). Now, you can add, update, delete, or select the data object with it. Please refer to the Unit Test Method:. Entities[0].FirstName = Bruce. The implementa...
brucezhang.wordpress.com
My Son is Swimming | Geek Talk
https://brucezhang.wordpress.com/2009/05/20/my-son-is-swimming
Bruce Zhang’s Space. My Son is Swimming. Leave a comment ». King, my son, enjoys the feeling in the water. Maybe all kids enjoy it. It was a first time of swimming. But he was joyful instead of scared. His cute little hands were waving, and his feet kicked the water repeatedly. I think, my son must be happy in the water. Look, he is smiling! Dear son, I love you. I wish you are happy and healthy for ever! Written by Bruce Zhang. May 20, 2009 at 2:12 pm. Laquo; A Common Base Class for LINQ To SQL. Follow ...
brucezhang.wordpress.com
Times Reader 2.0 | Geek Talk
https://brucezhang.wordpress.com/2009/05/14/times-reader-2-0
Bruce Zhang’s Space. Times Reader 2.0. Leave a comment ». On May 12th, New York Times announced the Times Reader 2.0 is now available. This new version is powered by Adobe AIR and can run equally well on Windows, Mac, Linux platform. If you are member of New York Times website, you can free download it. Installing it, it becomes more convenient to read the news from New York Times. Figure 1: Front Page. Figure 2: News in Pictrures. Figrue 3: Browse Mode. It means Microsoft lost the important customer?
brucezhang.wordpress.com
Focus on the Extension of WCF Behavior | Geek Talk
https://brucezhang.wordpress.com/2009/05/17/extension-wcf-behavior
Bruce Zhang’s Space. Focus on the Extension of WCF Behavior. WCF provides the flexible and extensible architecture for the developer. The most common situation is to customize the extension of behavior. It is not complex, but some issues should be noticed. This article is prepare to discuss how to extend the behavior in WCF. On the service side, if we want to extend the behavior, we need to extend the DispatchRuntime. To inspect parameters ). To invoke the operation). It seems like implementation of AOP.
brucezhang.wordpress.com
April | 2011 | Geek Talk
https://brucezhang.wordpress.com/2011/04
Bruce Zhang’s Space. Archive for April 2011. Design decides on performance. Leave a comment ». Guess how to implement this function in the legacy system? It fetched the all user who subscribed this suite, then draw a dicision whether delete it depending on the size of user list:. List User users = busiSuiteRepository.fetchSubsribersWith(suiteId); if. Users = null users.size() = 0) { busiSuiteRepository.remove(suiteId); }. SubscriptionFlag = false; public. SubscriptionFlag; } public. Written by Bruce Zhang.
brucezhang.wordpress.com
Dispose() in WCF | Geek Talk
https://brucezhang.wordpress.com/2009/05/16/dispose-in-wcf
Bruce Zhang’s Space. Leave a comment ». InfoQ posted a news “ The problems with WCF and the Using Block. 8221; about the disposing client resource in WCF and gave some solutions to this issue. I was looking for some material for this question, and wanted to give my summarization here. DebugPrint(ex.ToString() ;. DebugPrint(ex.ToString() ;. DebugPrint(ex.ToString() ;. We can replace the Close() with CloseConnection() method to avoid writting the repeated and tedious try/catch/finally statement. The ot...
brucezhang.wordpress.com
Stream operation in WCF | Geek Talk
https://brucezhang.wordpress.com/2009/06/01/stream-operation-in-wcf
Bruce Zhang’s Space. Stream operation in WCF. WCF provides the support for Stream object. It typically recommends the developer to handle the message which size is too large as Stream object for the sake of high performance. However, there are some constraints on Stream operation to note:. 1 The constraint of Binding. 2 The constraint of Stream object. It is very interesting of transform between FileStream and Stream class. For example, the following implementation of the operation in a service:. Note, t...
brucezhang.wordpress.com
Common Base Class for LINQ to SQL | Geek Talk
https://brucezhang.wordpress.com/2008/07/30/common-base-class-for-linq-to-sql
Bruce Zhang’s Space. Common Base Class for LINQ to SQL. In LINQ to SQL, all variables in the Data Model of a relational database can be strongly typed which provides the benefit of compile-time validation and IntelliSense. We can fetch the data from the database using query expression (it includes query syntax and method syntax.). IList TEntity Where(Func TEntity, bool. M context.GetTable TEntity ().Where(predicate).ToList TEntity ();. T Where T ( this. T source, string. Source, predicate, values);.
brucezhang.wordpress.com
Geek Talk | Bruce Zhang’s Space | Page 2
https://brucezhang.wordpress.com/page/2
Bruce Zhang’s Space. Leave a comment ». Dragon Boat Festival is occuring on the fifth day of the fifth lunar month. It’s a significant holiday celebrated in china, and the one with the longest history. The Dragon Boat Festival is celebrated by boat races in the shape of dragon. Competing team rows their boats forward to a drumbeat racing to the finish end first. On May 28th this year, let’s celebrate the Dragon Boat Festival! Written by Bruce Zhang. May 13, 2009 at 11:17 am. Strategy Pattern and Delegate.
SOCIAL ENGAGEMENT