New Posts New Posts RSS Feed: Why are the Max Lengths not being populated
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Why are the Max Lengths not being populated

 Post Reply Post Reply
Author
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post Topic: Why are the Max Lengths not being populated
    Posted: 07-Jul-2009 at 2:08pm
I have an Oracle database and am using the Devart dotConnect drivers.
The EDMX file has the following type defined:
<EntityType Name="DEAL">

<Key>
    <PropertyRef Name="DEAL_ID" />
</Key>
<Property Name="DEAL_ID" Type="int64" Nullable="false" StoreGeneratedPattern="Identity" />
<Property Name="DATE_ENTERED" Type="DATE" Nullable="false" />
<Property Name="CONTACT_OTHER" Type="VARCHAR2" MaxLength="50" />

<EntityType Name="Deal">

<Key>
    <PropertyRef Name="DealId" />
</Key>
<Property Name="DealId" Type="Int64" Nullable="false" ib:BindableMode="OneWay" ib:DisplayName="Deal Id" />
<Property Name="DateEntered" Type="DateTime" Nullable="false" />
<Property Name="ContactOther" Type="String" />

<MappingFragment StoreEntitySet="DEALs">

<ScalarProperty Name="DealId" ColumnName="DEAL_ID" />
<ScalarProperty Name="DateEntered" ColumnName="DATE_ENTERED" />
<ScalarProperty Name="ContactOther" ColumnName="CONTACT_OTHER" />


Notice the last field, CONTACT_OTHER has a MaxLength of 50. However, the Object Mapper is not picking it up and a corresponding verifier is not being created:

#region ContactOther


/// <summary>Gets or sets the ContactOther.</summary>
[IbUtil.DBDataType(typeof(String))]
public String ContactOther {
   get { return ContactOtherEntityProperty.GetValue(this); }
   [global::System.Diagnostics.DebuggerNonUserCode]
   set { ContactOtherEntityProperty.SetValue(this, value); }
}
#endregion ContactOther


Why is this happening? How can I fix this? I would like to have the verifier's so the UI can work properly. Thanks!
Back to Top
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post Posted: 13-Jul-2009 at 3:06pm
Did this get lost in the shuffle? Has anyone had a chance to figure out why this is happening?
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 14-Jul-2009 at 2:15pm
The Object Mapper only looks at the conceptual model - the CSDL section of the EDMX.  In your model the MaxLength attribute has not been carried through from the storage model (SSDL) to the conceptual model.  Check with Devart for product updates.
Back to Top
skingaby View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 23-Apr-2008
Location: United States
Posts: 146
Post Options Post Options   Quote skingaby Quote  Post ReplyReply Direct Link To This Post Posted: 17-Sep-2009 at 8:06pm
Devart has updated their Oracle driver and the 5.25.42 version now copies the MaxLength from the Storage model to the Conceptual model, where IdeaBlade can pick it up.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down