I would like to thank everyone for attending my presentation this Saturday at the NYC (Winter) Code Camp! I really enjoyed the high level of interest and participation from the attendees. Unfortunately, we only had 75 minutes to talk about Entity Framework and EF Code First but thankfully we have the internet!
Thanks to all of the organizers at the NYC Code Camp for an excellent day of learning and networking! This year, it “sold out” in 27 hours! The speakers were excellent and the event was run very smoothly.
I have posted the slide deck (including the demo code) for your viewing pleasure.
EF Code First.pptx
File compression is nothing new to .NET. However, in many solutions it requires the developer to establish a file folder which they will write the compressed file to and later read from.
This solution cannot work if you want to compress and use the file in memory without writing to disk. An example of this could be on a server where you don’t particularly want to have random processes writing to and reading files.
Listed below is a solution we came up with for compressing a file in memory. We used an open source library SharpZipLib from sharpDevelop.net. There are other good options out there that could also be used. We found that using this library offered the most intuitive solution to creating the archive file.
The result will be a Stream which can be used to send the compressed data to an…
As some of you know, I presented on Entity Framework 4 and WCF Data Services 4 at Hartford Code Camp back on June 19th. I have posted the material from the code camp here.
Here are the links to the material from the ASP.NET MVC 2 Primer presentation given at the 3rd Annual Hartford Code Camp on Saturday, June 19, 2010:
Powerpoint Slides: Primer.pptx
Source Code: PrimerDemoSource.zip
I have done some Very Bad Things™ in this code in order to speed up the presentation that are always considered bad practice. The most egregious violation of best practices is the inclusion of the data access code in the controller’s action methods. Please do not use this code as a basis for your application design, especially when it comes to best practices. My next post will include the information covered in the advanced section along with a lot of material we never got to. This will be a much better demonstration of proper design.
Also, look for upcoming screencasts on ASP.NET MVC2 and other development topics posted here and/or on…
Downloade the Presentation and Code
The Connecticut User Group organized a full day code camp event in Bloomfield, CT. The topic I presented on was “RESTFul Services and Silverlight”. The presentation was organized around the following main topics:
Web Services via SOAP
Creating a WCF RESTFul Service
Consuming a Custom WCF RESTFul Service in Silverlight
The attached slide deck will provide you with highlights on each topic. The code samples revolve around the AdventureWorks Database. I have partitioned the code into Data Access, Service Layer and a UI Layer.
Database: AdventureWorksDB from code plex. You can download it from here: http://www.codeplex.com/MSFTDBProdSamples
Data Access: Used Nettiers and Codesmith to Generate the CRUD methods to access Adventure Works.
Service Layer: WCF, ASMX and WCF REST service examples. I have also included a sample service from John Papa’s Data Services with Silverlight book. I would recommend this book for who ever is…
On June 13, 2009 I was privileged to give a presentation at the Hartford Code Camp at New Foundations in Bloomfield, CT. The event was a great success, with 29 presenters, 35 sessions, and more than 150 people in attendance. I’d like to say thank you to anyone who was able to attend my session on LINQ, my group was great and had a lot of insightful and pointed questions.
As promised, I’m posting the content from the presentation including the PowerPoint files and Demo Code.
If anyone has any questions about the content, please feel free to e-mail me at email@example.com
Presentation and Content Files: LINQ Presentation And Files
This topic was presented during the February CTDOTNET user group meeting in Farmington, CT.
The attached presentation (Slide Deck) and source code (Source Code) provide an introduction to creating databound application using silverlight 2.0
Visual Studio 2008
Silveright Tools (SDK, Controls, Templates). http://silveright.net/GetStarted
SQl Server 2005 and AdventureWorks Sample Database: To run the web service example.
Basic Data Binding
Data Binding Concepts
One Way Data Binding
Two Way Data Binding
One Time Data Binding
Data Binding Collections
Create Web or WCF Services for Data Access
Create a ClientAccessPolicy.xml file. Otherwise silverlight will not be able to access the web service.
Note: Only basicHttpBinding is supported in Silverlight
Note: You cannot create references to Non-Silverlight libraries in a Silverlight Application or Silverlight Class Library project
As a result you have to create a service layer to consume your existing entities and data access tiers in a silverlight application
Sample Code Structure
AdventureWorks.Nettiers.Data: Data Access Layer
This Saturday was the first Hartford Code Camp. I presented on SpringFramework.NET specifically regarding Inversion of Control (IOC).
The presentation is in PowerPoint and discusses some of the basic concepts that need to be understood prior to understanding Spring.NET.
The source code is what was demonstrated during the presentation. It contains two solution folders.
TightlyCoupledClasses – Example of normal C# development where classes are tightly coupled together with manual instantiation.
LooselyCoupledClasses – Similar code loosely coupled using Spring.NET IOC. Includes various NUnit tests utilizing mock objects showing the ability to isolate tests with manual injection of mock objects.
If you have any question feel free to post questions or comments here or email me directly at firstname.lastname@example.org.
This weekend was the first Hartford area Microsoft Code Camp. It was very successful with well over 150 attendees and over 22 presenters. We presented the following topics:
Lee Rodgers – Spring.NET & IOC
Reddy Kadasani – Silverlight – Lighting up the Web
Presentation content and demo content will be posted to this site in the next few days, so please check back.
Addition information about the code camp can be found at the Conneticut .NET user group website (http://ctdotnet.org).
I gave a presentation on BizTalk High Availability options to the New England chapter of the BizTalk user Group on May 14th.
Here is a link if you are interested in downloading the presentation (powerpoint 97-2003 format).