Wednesday 23 January 2008

NHibernate Provider for ASP.Net 2.0 membership and roles

Found this extremely useful blog on how to build an nhibernate custom provider for ASP.Net Membership role security.

http://www.codeplex.com/nhibernateprovider/

http://lvildosola.blogspot.com/2007/02/nhibernateprovider-moves-to-codeplex.html

Another individual trying to use nhibernate with membership providers

http://www.codeproject.com/KB/aspnet/eucalypto.aspx

Thursday 17 January 2008

Useful simple type for Global Unique Identifier

Keep having to use this in schemas - so thought I would put this here..

This type will verify a global unqiue identifier:

<xs:simpleType name="GUID">
<xs:annotation>
<xs:documentation xml:lang="en">The representation of a GUID, generally the id of an element.</xs:documentation>
</xs:annotation>
<xs:restriction base="xsd:string">
<xs:pattern
value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}"/>
</xs:restriction>
</xs:simpleType>