[fluent-nhib] Re: Newby question about mapping

2011-09-17 Thread Vahid
Hello, You can try this tool which is able to produce FHN mappings too http://nmg.codeplex.com/ -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com. To unsubscribe from thi

[fluent-nhib] Re: Fluent Mapping For IuserType

2011-09-08 Thread Vahid
NH contains built-in solutions for XML fields: "NHibernate.Type.XDocType" for mapping System.Xml.Linq.XDocument & "NHibernate.Type.XmlDocType" for mapping System.Xml.XmlDocument And then to use that we can define: Property(x => x.Criteria, x => x.Type()); or Map(x => x.Property).CustomType(); --

[fluent-nhib] Re: NHibernate 3.2 - Getting Started

2011-08-24 Thread Vahid
for part 2, I found these tutorials: (Part 1) - NHibernate Mapping by Code, SchemaExport and SchemaValidate http://www.youtube.com/watch?v=0pV5aecwAUo (Part 2) - NHibernate Mapping by Code, SchemaExport and SchemaValidate http://www.youtube.com/watch?v=6B_8BXxL8d4 Have fun! -- You received thi

[fluent-nhib] Re: FYI: NHibernate 3.2.0GA released!

2011-08-01 Thread Vahid
You can use binding redirects (bindingRedirect oldVersion='...'  newVersion='...') http://msdn.microsoft.com/en-us/library/eftw1fys%28v=vs.71%29.aspx -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluen

[fluent-nhib] Re: Unable to set IQuery as cacheable

2011-05-29 Thread Vahid
How about this one? (what are your domain classes exactly) var list = session.QueryOver() .Fetch(x => x.Children).Eager .Where(x => x.Parent == null) .TransformUsing(NHibernate.Transform.Transformers.DistinctRootEntity)

[fluent-nhib] Re: Default Value does not work with DateTime and Fluent Nhibernate 1.2?

2011-05-25 Thread Vahid
actually it works if you write something like: Map(x => x.EndOfTerm).Default("5/21/2011").Not.Nullable().Not.Insert().Not.Update().Generated.Always(); http://nhforge.org/doc/nh/en/index.html#mapping-generated -- You received this message because you are subscribed to the Google Groups "Fluent NH

[fluent-nhib] NHibernate Code-First

2011-05-07 Thread Vahid
just found it @codeplex ... ;) NHibernate Code-First is an abstraction layer on top of NHibernate core that allow you easily create data-centric application without writing any line of XML mapping files. http://nhcodefirst.codeplex.com -- You received this message because you are subscribed to t

[fluent-nhib] Re: Conventions not working with FNH 1.2?

2011-05-04 Thread Vahid
Hi, To be specific, I am using FHN 1.2.0.705. You can find it here: http://teamcity.codebetter.com/viewType.html?buildTypeId=bt295&tab=buildTypeStatusDiv After that, I have: using System.Data.Entity.Design.PluralizationServices; using System.Globalization; using FluentNHibernate.Conventions; usin

[fluent-nhib] Re: Is Fluent NHibernate dead?

2011-04-30 Thread Vahid
NH 2.3 does not support auto-mapping so I'll stick with fluent NH! More info: http://lostechies.com/jamesgregory/2011/04/13/me-on-nhibernate-3-2/ -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nh

[fluent-nhib] Re: Stable build for NH 3.1?

2011-03-31 Thread Vahid
Hi, Thanks. Iesi.Collections.dll file is the only external dependency of NH 3.1. They have merged other assemblies by using ILMerge. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@goog

[fluent-nhib] Re: version column with custom name

2011-03-29 Thread Vahid
Hi, If you want to use automapping and you don't want to define custom universal conventions, try IAutoMappingOverride. It's still automapping except for those properties which should not be treated automatic and now you can specify their "ColumnName" manually: http://wiki.fluentnhibernate.org/Auto

[fluent-nhib] Re: Formula and automapping

2011-03-29 Thread Vahid
Hi, You should do it this way: public class UserCustomMappings : IAutoMappingOverride { public void Override(AutoMapping mapping) { mapping.Id(u => u.Id).GeneratedBy.Identity(); mapping.Map(x => x.FullName).Formula("FirstName + ' ' + LastName";); //

[fluent-nhib] Re: Stable build for NH 3.1?

2011-03-23 Thread Vahid
3.2.0 is on the way ... -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com.

[fluent-nhib] MsSqlCe40Dialect

2011-02-01 Thread Vahid
Hi, NH 3 supports MsSqlCe40Dialect, Plz add this one to latest Fluent NHibernate too. thnx. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com. To unsubscribe from this gr