C# .NET Notes
Tuesday, November 19, 2013
What is a good code snippet, knowledge base note taking tool?
I have been storing my programming notes for years in folders with individual txt, pdf, zip files.
For years I have been looking for a great tool to organize my notes.
I develop in both OSX and Windows so looking for tools in both environments.
For non programming I used to use MyInfo from Milenix but there is no code highlightning
There is a thread here on How do you manage your knowledge base but I didn't get much wiser after reading that, but there is a lot of suggestions.
I recently came across Snippetmanager that has code highlighting. If I could combine this with MyInfo and sync with a Mac version it could be perfect. I might give it a try. UPDATE: This app haven't been updated for 1-2 years.
For Mac I found Snippetsapp but it doesn't support C# and haven't been updated for one year.
Snippets (Mac+Windows)
CodeBox (Mac) but I'm missing a trial here before I pay 10USD
So far I'm still hunting for the perfect tool.
Friday, January 13, 2012
How to assign unique id to WCF with NLog
I want to add a unique id for each session request in WCF using NLog so I can identify to what session
I have not found a clear way to do this but here is a few pointers:
I have not found a clear way to do this but here is a few pointers:
- How to do this using log4net: http://www.catchblock.com/blog/post/2011/12/02/WCF-Web-API-and-logging-unique-request-id-with-log4net.aspx
- Further discussion about log4net: http://wcf.codeplex.com/discussions/281421
- NLog's way of adding context: http://nlog-project.org/wiki/Event-context_layout_renderer
Tuesday, January 25, 2011
Unrecognized Tag Prefix or Device Filter ‘asp’
Have problems with the above error when using nested MasterPages?
I found out the problem in my case was that I had the tag in a nested masterPage. I solved it by simply moving the tag to the first MasterPage.
I found out the problem in my case was that I had the tag in a nested masterPage. I solved it by simply moving the tag to the first MasterPage.
Tuesday, October 5, 2010
Entity Framework - POCO self tracking entities
My links:
http://blogs.msdn.com/b/efdesign/archive/2009/03/24/self-tracking-entities-in-the-entity-framework.aspx
http://msdn.microsoft.com/en-us/library/bb896269.aspx
http://msdn.microsoft.com/en-us/library/dd456854.aspx
http://msdn.microsoft.com/en-us/library/dd456848%28VS.100%29.aspx
http://blogs.msdn.com/b/adonet/archive/2009/06/10/poco-in-the-entity-framework-part-3-change-tracking-with-poco.aspx
http://blogs.msdn.com/b/efdesign/archive/2009/03/24/self-tracking-entities-in-the-entity-framework.aspx
http://msdn.microsoft.com/en-us/library/bb896269.aspx
http://msdn.microsoft.com/en-us/library/dd456854.aspx
http://msdn.microsoft.com/en-us/library/dd456848%28VS.100%29.aspx
http://blogs.msdn.com/b/adonet/archive/2009/06/10/poco-in-the-entity-framework-part-3-change-tracking-with-poco.aspx
Monday, September 20, 2010
Entity Framework (CTP4) links
I thought I wanted to share some of my EF CTP4 links
http://blogs.msdn.com/b/adonet/archive/2010/07/14/ctp4piwalkthrough.aspx
http://romiller.com/2010/07/18/ef-ctp4-tips-tricks-mapping-to-an-existing-database/
http://blogs.iis.net/shanselman/archive/2010/07/14/simple-code-first-with-entity-framework-4-magic-unicorn-feature-ctp-4.aspx
http://weblogs.asp.net/scottgu/archive/2010/08/03/using-ef-code-first-with-an-existing-database.aspx
http://huyrua.wordpress.com/tag/poco/
http://code.msdn.microsoft.com/EFDocSamples2010
http://romiller.com/2010/07/19/ef-ctp4-tips-tricks-wcf-data-service-on-dbcontext/
http://csharpbits.notaclue.net/2010/07/using-entity-framework-code-first-ctp4.html
http://romiller.com/2009/06/26/ntier-with-ef4-beta-1/
http://romiller.com/2010/07/31/ef-ctp4-tips-tricks-running-additional-ddl/
http://blogs.msdn.com/b/adonet/archive/2009/12/22/poco-proxies-part-1.aspx
http://msdn.microsoft.com/en-us/library/ee705457.aspx
http://blogs.msdn.com/b/efdesign/archive/2010/06/21/productivity-improvements-for-the-entity-framework.aspx
http://buildstarted.com/2010/08/27/entity-framework-with-many-to-many-one-to-many-and-one-to-one-relationships/
LINQ samples
ADO.NET Entity Framework Overview)
http://blogs.msdn.com/b/efdesign/archive/2008/11/20/n-tier-improvements-for-entity-framework.aspx
http://blogs.msdn.com/b/adonet/archive/2009/05/28/poco-in-the-entity-framework-part-2-complex-types-deferred-loading-and-explicit-loading.aspx
http://romiller.com/2010/07/19/ef-ctp4-tips-tricks-wcf-data-service-on-dbcontext/
http://blogs.msdn.com/b/adonet/archive/2010/07/14/ctp4piwalkthrough.aspx
http://romiller.com/2010/07/18/ef-ctp4-tips-tricks-mapping-to-an-existing-database/
http://blogs.iis.net/shanselman/archive/2010/07/14/simple-code-first-with-entity-framework-4-magic-unicorn-feature-ctp-4.aspx
http://weblogs.asp.net/scottgu/archive/2010/08/03/using-ef-code-first-with-an-existing-database.aspx
http://huyrua.wordpress.com/tag/poco/
http://code.msdn.microsoft.com/EFDocSamples2010
http://romiller.com/2010/07/19/ef-ctp4-tips-tricks-wcf-data-service-on-dbcontext/
http://csharpbits.notaclue.net/2010/07/using-entity-framework-code-first-ctp4.html
http://romiller.com/2009/06/26/ntier-with-ef4-beta-1/
http://romiller.com/2010/07/31/ef-ctp4-tips-tricks-running-additional-ddl/
http://blogs.msdn.com/b/adonet/archive/2009/12/22/poco-proxies-part-1.aspx
http://msdn.microsoft.com/en-us/library/ee705457.aspx
http://blogs.msdn.com/b/efdesign/archive/2010/06/21/productivity-improvements-for-the-entity-framework.aspx
http://buildstarted.com/2010/08/27/entity-framework-with-many-to-many-one-to-many-and-one-to-one-relationships/
LINQ samples
ADO.NET Entity Framework Overview)
http://blogs.msdn.com/b/efdesign/archive/2008/11/20/n-tier-improvements-for-entity-framework.aspx
http://blogs.msdn.com/b/adonet/archive/2009/05/28/poco-in-the-entity-framework-part-2-complex-types-deferred-loading-and-explicit-loading.aspx
http://romiller.com/2010/07/19/ef-ctp4-tips-tricks-wcf-data-service-on-dbcontext/
Problem with STA and WCF when using COM-objects
Scott Seely have a good post about how to solve calling STA COM Object from a WCF operation. In my case I had an old COM object that required STA.
Look here for Scott Seely's post
Look here for Scott Seely's post
Friday, August 6, 2010
Entity Framework (CTP4)
Playing with the new Entity Framework I had a need to store files.
Simply add Byte[] to your CLR
public class Product
{
public int ProductId { get; set; }
[StringLength(40)]
public string Name { get; set; }
public Byte[] ProductImage { get; set; } //Maps to VARBINARY(MAX)
public string CategoryId { get; set; }
public virtual Category Category { get; set; }
}
Subscribe to:
Posts (Atom)