Re: [fluent-nhib] Delete Cascade

2010-02-15 Thread Hudson Akridge
You can try setting a .Cascade.AllDeleteOrphan() on both of the HasMany's (You also need to declare them .Inverse()). If that fails, you can look into something heavier but more thorough like a Dereferencing process . 201

[fluent-nhib] Delete Cascade

2010-02-15 Thread Bruno Leitão de Oliveira
I need to delete childs objects when the parent was deleted, i have this case: public sealed class ClientMap : ClassMap { public ClientMap() { Id(x => x.Id).GeneratedBy.Native(); Map(x => x.Name).Length(200).Not.Nullable(); HasMany(x => x.Cons);

Re: [fluent-nhib] Re: ComponentMap and ColumnPrefix

2010-02-15 Thread James Gregory
> > Is this the intended results? I hope that's sarcasm... :) No, that most definitely isn't the expected results. Can you put together a small example project that illustrates this? There's obviously a case that our tests aren't covering. On Mon, Feb 15, 2010 at 4:39 PM, Chuck wrote: > Sorry

[fluent-nhib] Re: ComponentMap and ColumnPrefix

2010-02-15 Thread Chuck
Sorry...new keyboard...Take Two... public class AuditInfo { public DateTime DateTime { get; set; } public string UserName { get; set; } } In my persistence objects, I use this twice, once for "created" and the other for "modified" e.g. public virtual AuditInfo CreationInfo { ge

[fluent-nhib] ComponentMap and ColumnPrefix

2010-02-15 Thread Chuck
I have a component called AuditInfo that is used to capture the UserName and Date of a data modification: public class AuditInfo { public DateTime DateTime { get; set; } public string UserName { get; set; } } -- You received this message because you are subscribed to the Google Groups

[fluent-nhib] ComponentMap and ColumnPrefix

2010-02-15 Thread Chuck
I have a component called AuditInfo that is used to capture the UserName and Date of a data modification: public class AuditInfo { public DateTime DateTime { get; set; } public string UserName { get; set; } } -- You received this message because you are subscribed to the Google Groups

[fluent-nhib] Sql Lite unknown database error

2010-02-15 Thread codequest10
while running n unit test cases , following error is obtained with sql lite , any suggestions on the possible reason for the same ? System.Data.SQLite.SQLiteException : SQLite error unknown database dbo -- You received this message because you are subscribed to the Google Groups "Fluent NHibe

[fluent-nhib] Automapper unable to map multiple child classes in dynamically loaded assemblies?

2010-02-15 Thread Kenneth Cochran
I have two classes in separate, dynamically loaded assemblies that both inherit from the base class TaxForm. Here is the configuration for the Automapper: .Mappings(m => { foreach (Assembly assembly in Doma

Re: [fluent-nhib] Re: entity-type

2010-02-15 Thread James Gregory
It should be in the official repo now (or as of a day or so ago, actually). On Mon, Feb 15, 2010 at 1:57 PM, Jan Limpens wrote: > Very cool! Thanks! > > > On Sat, Feb 13, 2010 at 9:53 AM, Paul Batum wrote: > >> I've extended the entity-name support a little further - you should be >> able to us

Re: [fluent-nhib] Re: entity-type

2010-02-15 Thread Jan Limpens
Very cool! Thanks! On Sat, Feb 13, 2010 at 9:53 AM, Paul Batum wrote: > I've extended the entity-name support a little further - you should be able > to use it within your subclass maps now. I just sent James a pull request, > so it should be in the official repository before long. > > On Sat, F

Re: [fluent-nhib] Base Entity type and Constructor logic

2010-02-15 Thread Mikael Henriksson
James was working on moving FNH to a virtual private server I think... He probably got lost playing games and forgot about it :) On Mon, Feb 15, 2010 at 3:35 AM, Martin From wrote: > Hello, > > I have a base Entity type containing the properties - Id and CreatedAt > (Datetime). > In the required