> 2. In your code, use the DataContext(IDbConnection, MappingSource) or
> DataContext(string, MappingSource) constructors. This allows you to
> provide your own (already constructed) MappingSource value, thus
> preventing DataContext from creating a new AttributeMappingSource
> instance.
I tried constructor
public partial class Entity : DbLinq.Data.Linq.DataContext
{
public Entity(IDbConnection connection)
: base(connection, new AttributeMappingSource(), new
DbLinq.PostgreSql.PgsqlVendor()) {
...
but this causes invalid sql select statement creation: created select
statement
includes also foreign key names (from non-persistent properties decorated
with Association( ))
MetaTable persistent property list contains also associations in this case.
I tried to add IsPersistent overload to
DbLinq\Data\Linq\Mapping\AttributedColumnMetaDataMember.cs
public override bool IsPersistent
{
get
{
return memberInfo.GetAttribute<AssociationAttribute>() ==
null;
}
}
but problem persists.
No idea what causes this.
Andrus.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---