archive-be.com » BE » B » BENNYMICHIELSEN.BE

Total: 348

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Book review: Essential LINQ – Benny Michielsen
    stored procedures modifying objects and how you can plug into the system with extension methods After diving deep into LINQ to SQL there s only a very small description of the Entity Framework or LINQ to Entities Which is probably in hindsight the biggest issue you can have with this book since it s now the de facto standard of data access promoted by Microsoft The book finishes with another in depth discussion of LINQ to XML which was new to me and just like LINQ to SQL you ll be an expert by the end of the chapters So to wrap it up the book reads like you re being thaught by a very good teacher If you want to make sure you know your basic LINQ this is the one you need Author BennyM Posted on 16 01 2011 Categories Software Development Tags book linq Leave a Reply Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post Book review Silverlight 4 in Action Next Next post MVC3 and MonoDevelop Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure

    Original URL path: http://blog.bennymichielsen.be/2011/01/16/book-review-essential-linq/ (2016-04-29)
    Open archived version from archive


  • book – Benny Michielsen
    78 kb TheOvalApp Chapter 18 Challenge zip 65 73 kb Author BennyM Posted on 16 06 2008 Categories Software Development Tags book c cocoa development objective c programming Leave a comment on Cocoa Programming for Mac OS X Ch 17 18 Cocoa Programming for Mac OS X Ch 13 16 I ve been busy at work so haven t made as much progress in the book as I wanted the chapters I did cover however were great Chapter 13 User Defaults In chapter 12 a preference screen panel was introduced a preference menu item is standard in a default application In OS X preferences are automatically stored under Library Preferences To access them you can use the NSUserDefaults class which has a standardUserDefaults method and returns an NSMutableDictionary When the application starts you need to enter your defaults in that dictionary and call the registerDefaults method Any changes the user makes are persisted to the location stated above just make sure whatever you put into it can serialize itself In the rest of your application you can just read or set values in that dictionary it s automatically saved In Net you d use user specific application settings which are stored in the app config Chapter 14 Using Notifications Something which is definitely missing in the Net framework is a Pub Sub mechanism There is one available in the EnterpriseLibrary and in Spring Net but it s great to see this in Cocoa Every running application has an instance of NSNotificationCenter an observer can ask to be notified of certain events certain events of a certain object or all events of a certain object A publisher will tell the NotificationCenter about the notification it wants to send The NotificationCenter will look up the observers and call the method that was supplied when they subscribed I just recently needed this in a very large application having it at hand would certainly have saved time Chapter 15 Alert Panes In the Net world the MessageBox The only big difference here is that here they can be run modally meaning no other windows will receive events until it is closed or as a sheet meaning it s specific to a certain form Chapter 16 Localization Again this can be compared to the work you need to do in Visual Studio and Net the main difference here is that you can pretty easy extract the strings that need to be localized This is probably possible in the Net world too with some sort of plugin but it s always nice to see it build in like the notifications I m now half way through the book and can say that it s a very pleasant one to read you can get it here I ve also adjusted my view on Objective C and Cocoa while at first it seemed a bit rough and basic I m beginning to see that it s full featured language and framework with very advanced capabilities which don t require a lot of code Though the real challenge will be to build a real application after I ve completed the book I m still staring at the screen sometimes wondering why I got three errors when there s only a missing Oh yeah thanks Lemmy for giving me a tilde over IM I haven t found that key on the keyboard yet p RaiseMan Chapter 13 zip 86 38 kb RaiseMan Chapter 14 zip 87 29 kb RaiseMan Chapter 15 zip 87 67 kb RaiseMan Chapter 16 zip 111 13 kb Author BennyM Posted on 04 06 2008 Categories Software Development Tags book c cocoa development objective c programming 2 Comments on Cocoa Programming for Mac OS X Ch 13 16 Cocoa Programming for Mac OS X Ch 9 12 Read part one here part two here and get the book here The plot thickens Chapter 9 NSUndoManager For those wondering what that NS is doing everywhere it comes from NeXTSTEP more information about it here This chapter is all about adding undo redo capabilities to your application and maybe it s because the current sample application is well a sample but it s rather easy to add this capabilities to your program Also you get it integrated with the menu bar at no extra cost the window shows that there are changes and the undo and redo buttons come to live The underlying mechanism relies heavy upon Key Value coding which was discussed in chapter 7 again demonstrating it power void insertObject Person p inEmployeesAtIndex int index NSLog adding to p employees NSUndoManager undo self undoManager undo prepareWithInvocationTarget self removeObjectFromEmployeesAtIndex index if undo isUndoing undo setActionName Insert Person self startObservingPerson p employees insertObject p atIndex index Chapter 10 Archiving The sample application now tracks changes and when you try to close an edited window it asks if it should save its changes So the logical next chapter is about adding this capability In this chapter we learn that the notion of an interface in Net actually also exists in Objective C but it s called a protocol and unlike Net and Java you can have optional methods in a protocol so any method marked optional does not need to be implemented Archiving is coupled with the NSCoding protocol and the abstract NSCoder class most of the time you ll be dealing with the abstracted class which hides the underlying mechanism Implementing this can be compared to the implementation in Net Though it requires less code to write since your object graph is stored automatically in a file You can configure the extension and the icon from within XCode it was also nice to see that OS X had automatically associated the extension with my application import Foundation Foundation h interface Person NSObject NSCoding NSString personName float expectedRaise property readwrite copy NSString personName property readwrite float expectedRaise end import Person h implementation Person id init super init expectedRaise 5 0 personName New Person return self void dealloc personName release

    Original URL path: http://blog.bennymichielsen.be/tag/book/ (2016-04-29)
    Open archived version from archive

  • linq – Benny Michielsen
    is the one you need Author BennyM Posted on 16 01 2011 Categories Software Development Tags book linq Leave a comment on Book review Essential LINQ How to support Contains in Entity Framework 3 5 How can you retrieve the products that are contained in a list of id s var ids new List int 1 2 3 500 using var context new AdventureWorksEntities var products from product in context Products where ids Contains product ProductID select product WriteProducts products The good news this is supported in Entity Framework v4 0 but since I m on 3 5 I needed to find another solution Luckily using the info from my previous post I can write an expression for this var ids new List int 1 2 3 500 using var context new AdventureWorksEntities Expression Func Product bool idMatching null foreach var id in ids int productId id if idMatching null idMatching x x ProductID productId else idMatching idMatching Or x x ProductID productId var products context Products Where idMatching WriteProducts products Author BennyM Posted on 05 12 2010 Categories Software Development Tags entity framework linq 3 Comments on How to support Contains in Entity Framework 3 5 Combining expressions to use with the Entity Framework You often have to create a screen where the information is filtered on a given condition and the user can set some more options through checkboxes For instance display all products of a certain category and those results should be able to be filtered on their active status We could send one query to the database to retrieve the products and then filter them in memory but let s try to use the database for all of this since they re good at this You ll bump into several issues when trying to solve this

    Original URL path: http://blog.bennymichielsen.be/tag/linq/ (2016-04-29)
    Open archived version from archive

  • Book review: Silverlight 4 in Action – Benny Michielsen
    explanation on how the rendering system works what the different types of controls are and how text can be used Part two gives you all the information you need to build real applications You re introduced to the binding features what your options are for data validation and how you can communicate with other applications Either Silverlight plugins on the same page or other systems via web services The last two chapters also give a nice explanation of the MVVM pattern although it goes way further and shows you ways to improve the maintainability of your code Very nice to see SOLID and DRY come into play hopefully we ll see more developers using those principles The last chapter covers WCF RIA services these were new to me and I was a bit blown away by the functionality that s available out of the box though I m still a bit sceptic It might be a bit too much forms over data even though there are some layers in between where you can plug into to do your thing The last part adds chapters on working with graphics creating animations improving the install experience using styles and resources and creating custom controls Some of those you ll use often printing for instance others maybe once in a lifetime like creating a custom panel Overall a very nice read to introduce you to the platform and create real world applications It s definitely developer oriented though don t expect to see much Expression Blend which you ll use to create themes and animations which I don t think you ll be doing in code as illustrated in the book Author BennyM Posted on 16 01 2011 Categories Software Development Tags book silverlight Leave a Reply Cancel reply Your email address will

    Original URL path: http://blog.bennymichielsen.be/2011/01/16/book-review-silverlight-4-in-action/ (2016-04-29)
    Open archived version from archive

  • silverlight – Benny Michielsen
    book don t think it s just for newbies You get an in depth explanation on how the rendering system works what the different types of controls are and how text can be used Part two gives you all the information you need to build real applications You re introduced to the binding features what your options are for data validation and how you can communicate with other applications Either Silverlight plugins on the same page or other systems via web services The last two chapters also give a nice explanation of the MVVM pattern although it goes way further and shows you ways to improve the maintainability of your code Very nice to see SOLID and DRY come into play hopefully we ll see more developers using those principles The last chapter covers WCF RIA services these were new to me and I was a bit blown away by the functionality that s available out of the box though I m still a bit sceptic It might be a bit too much forms over data even though there are some layers in between where you can plug into to do your thing The last part adds chapters on working with graphics creating animations improving the install experience using styles and resources and creating custom controls Some of those you ll use often printing for instance others maybe once in a lifetime like creating a custom panel Overall a very nice read to introduce you to the platform and create real world applications It s definitely developer oriented though don t expect to see much Expression Blend which you ll use to create themes and animations which I don t think you ll be doing in code as illustrated in the book Author BennyM Posted on 16 01 2011 Categories

    Original URL path: http://blog.bennymichielsen.be/tag/silverlight/ (2016-04-29)
    Open archived version from archive

  • CRM 4.0 Support – Benny Michielsen
    with so I helped him to get the issue fixed We dug through some log files to get some more information and found out that it was actually the audit plugin service which was complaining with the handshake failed due to an unexpected packet format Which clearly indicated it was something with the certificate or a specific HTTPS issue Long story short you need to change a registry value from port 80 to 443 We found all the necessary information on these sites SonomaPartners Dynamics com Author BennyM Posted on 15 01 2011 Categories Computer Leave a Reply Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post How to support Contains in Entity Framework 3 5 Next Next post Book review Silverlight 4 in Action Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning Brew 2052 on Getting up and running with Mono and Raspberry Pi 3 bhldev on Exposing iCal data

    Original URL path: http://blog.bennymichielsen.be/2011/01/15/crm-4-0-support/ (2016-04-29)
    Open archived version from archive

  • How to support Contains in Entity Framework 3.5 – Benny Michielsen
    if idMatching null idMatching x x ProductID productId else idMatching idMatching Or x x ProductID productId var products context Products Where idMatching WriteProducts products Author BennyM Posted on 05 12 2010 Categories Software Development Tags entity framework linq 3 thoughts on How to support Contains in Entity Framework 3 5 Dmitiry Sosunov says 05 09 2011 at 12 13 And how it works Expression Or returns BinaryExpression How you convert BinaryExpression to Expression Func Reply Alessandro says 26 07 2012 at 09 19 using System Linq using System Linq Expressions Expression Or is not recognized why Reply BennyM says 26 07 2012 at 09 22 I link to another blog post of mine where there s an explanation on how to combine expressions with And and Or In it there s also a link to another post having all the necessary code Reply Leave a Reply Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post Combining expressions to use with the Entity Framework Next Next post CRM 4 0 Support Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data

    Original URL path: http://blog.bennymichielsen.be/2010/12/05/how-to-support-contains-in-entity-framework-3-5/ (2016-04-29)
    Open archived version from archive

  • Combining expressions to use with the Entity Framework – Benny Michielsen
    ll bump into several issues when trying to solve this and like most problems in software development someone else most likely encountered the same issue and has already found a solution In this case take a look at this albeit old article which illustrates the problem and gives a solution It will enable you to write code like this public class ProductFinder public ICollection Product FindProductsBySubCategory int subCategoryId bool makeFlagMarked using var context new AdventureWorksEntities Expression Func Product bool whereClause x x ProductSubcategory ProductSubcategoryID subCategoryId if makeFlagMarked whereClause whereClause And x x MakeFlag return context Products Where whereClause ToList Author BennyM Posted on 05 12 2010 Categories Software Development Tags entity framework linq Leave a Reply Cancel reply Your email address will not be published Required fields are marked Comment Name Email Website Post navigation Previous Previous post Changing Entity Framework model at runtime Next Next post How to support Contains in Entity Framework 3 5 Search Search for Search Follow me Recent Comments Rick on Partitioning and wildcards in an Azure Data Factory pipeline BennyM on WCF HTTPS And Request Entity Too Large Justin on WCF HTTPS And Request Entity Too Large The Morning Brew Chris Alcock The Morning

    Original URL path: http://blog.bennymichielsen.be/2010/12/05/combining-expressions-to-use-with-the-entity-framework/ (2016-04-29)
    Open archived version from archive