Search found 19 matches

by estern
Fri 07 May 2010 20:20
Forum: Entity Framework support
Topic: some customers use oracle and some user MS SQL Server
Replies: 9
Views: 2343

some customers use oracle and some user MS SQL Server

Has anyone found a way to manage this? The thought process was one version of the code, two projects, one project with an Oracle model and one with a SQL server model.

The capitilization of the column names has to match to get the binding to work correctly (silverlight) etc. so the two project approach is becoming painful.

Is the Universal product an option - it doesn't state support for the entity framework?
by estern
Sat 24 Oct 2009 00:30
Forum: Entity Framework support
Topic: ORA-01790
Replies: 40
Views: 18448

ORA-01790

got it thanks - here is a vb implementation

Namespace nWorkArea
' fix ORA-01790
Partial Public Class WorkAreaEntities

Private Sub OnContextCreated()
Devart.Data.Oracle.Entity.OracleEntityProviderServices.TypedNulls = True
End Sub

End Class
End Namespace
by estern
Fri 16 Oct 2009 15:29
Forum: Entity Framework support
Topic: ORA-01790
Replies: 40
Views: 18448

Devart.Data.Oracle.Entity.OracleEntityProviderServices.Typed

I'm using silverlight on the front end and the entity framework for data access. I have no idea where to sent the above parameter to true - is there a web.config setting I can use?
by estern
Thu 01 Oct 2009 02:58
Forum: dotConnect for Oracle
Topic: problem when table a has multiple references to table employ
Replies: 1
Views: 1307

problem when table a has multiple references to table employ

I'm using the entity framework (edmx)

I have a table A that has 8 references to an employee table. The references are for things like
created by user
last changed by user
manager to approve
person who signed off on plan
person who executed plan
etc.

in the edmx model for table A I have right clicked on each reference and change the name
EMPLOYEEMANAGER for example
I use setlink to update and the correct reference is stored in the database
however when I query the data back in with

query = From p In _
Me.m_ADOService.A.Expand("EMPLOYEECREATEDBY").Expand("EMPLOYEELASTCHANGEDBY").Expand("EMPLOYEEBDN").Expand("EMPLOYEEPARTS").Expand("EMPLOYEEMANAGER").Expand("EMPLOYEEPLANSENT") _
Where p.OI = 123 Select p


None of the employee references are loaded

any suggestions?
by estern
Fri 04 Sep 2009 13:10
Forum: dotConnect for Oracle
Topic: Sept 4 release
Replies: 2
Views: 1565

Sept 4 release

Please provide more information on this fix

Fixed bug with using objects from different contexts

thanks
by estern
Mon 11 May 2009 03:05
Forum: Entity Framework support
Topic: expand expand expand
Replies: 2
Views: 2671

Source and sql scripts have been sent to [email protected]

the problem can be demonstrated with 3 tables

CREATE TABLE ES.A2
( "OI" NUMBER(11,0) NOT NULL ENABLE,
CONSTRAINT "A2_PK" PRIMARY KEY ("OI"));

CREATE TABLE ES.C2
( "OI" NUMBER(11,0) NOT NULL ENABLE,
"C2_DATA" VARCHAR2(10),
CONSTRAINT "C2_PK" PRIMARY KEY ("OI"));

CREATE TABLE ES.B2
("OI" NUMBER(11,0) NOT NULL ENABLE,
"OI_A2" NUMBER(11,0),
"OI_C2" NUMBER(11,0),
CONSTRAINT "B2_PK" PRIMARY KEY ("OI"),
CONSTRAINT FK_A2 FOREIGN KEY (OI_A2)
REFERENCES ES.A2 (OI),
CONSTRAINT FK_C2 FOREIGN KEY (OI_C2)
REFERENCES ES.C2 (OI));

The model looks correct

a2 is connected to b2 which is connect to c2

I can write, compile and execute this LINQ statement

Dim qA2B2C2 As Linq.IOrderedQueryable(Of A2)

qA2B2C2 = From A2B2C2 In m_ADOEntities.A2.Expand("B2").Expand("B2/C2") _
Where A2B2C2.OI = 1 Select A2B2C2



But get errors when trying to access data in C2
by estern
Sun 10 May 2009 16:14
Forum: Entity Framework support
Topic: The infamous oci.dll
Replies: 7
Views: 5743

check the system path

start, settings, control panel, system
advanced tab
environment variables button
system variables, path

mine looks like this
C:\oracle\product\10.2.0\db_1\bin;C:\oracle\product\10.2.0\client_1\bin;C:\oracle\product\10.2.0\client_2\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
by estern
Tue 05 May 2009 11:47
Forum: Entity Framework support
Topic: expand expand expand
Replies: 2
Views: 2671

expand expand expand

This linq statement in Silverlight 2

Dim query = From p In myContext.WORKAREA_EMPLOYEE.Expand("EMPLOYEE").Expand("EMPLOYEE/SITELINK").Expand("EMPLOYEE/SITELINK/TRADE") _
Select p

Almost works. The ("EMPLOYEE/SITELINK/TRADE") does not work. The Trade object is nothing.

First is this a Microsoft issue or a Devarts issue? If it's a Devarts issue is there a way to get from table1 to table4 (workarea_employee, employee, siltelink, trade)
by estern
Tue 05 May 2009 11:42
Forum: Entity Framework support
Topic: EDMX files
Replies: 4
Views: 3440

Devarts modeling tool

We have an existing project built with the "ADO.Net Entity Data model"

When I added the "ADO.Net Entity Data model" to the project VS 2008 included an model.edmx file and a model.designer.vb file

I can import the EDMX file into the DevArts toolset and generate a model.vb

When I drop the model.designer.vb and include the model.vb file the project does not start. I have not spent much time on this it looks to be related to he connection strings in the web.config. The constructors in the devarts generated vb file are slightly different than the Microsoft generated files.

Should we just be using DevArts for new models? I just noticed that I can add a Devarts Entity Model template?
by estern
Sat 02 May 2009 19:05
Forum: Entity Framework support
Topic: Trying to understand inheritance
Replies: 1
Views: 2462

Trying to understand inheritance

In a legacy database I have a customer table and a contact table

Customer Table
InternalKey
CustomerID
Name
PrimaryContact_InternalKey

Contact Table
InternalKey
Customer_InternalKey
Name
Etc.

What I think I should be able to do is put the contact table into the model once and then inherit from it twice once for PrimaryContact and once for all Contacts.
Does anyone have an example showing how to work with the one contact table in two different contexts?
by estern
Thu 30 Apr 2009 16:06
Forum: Entity Framework support
Topic: EDMX files
Replies: 4
Views: 3440

EDMX files

is there a way to generate an EDMX file from the Entity Developer?
by estern
Mon 13 Apr 2009 23:32
Forum: Entity Developer
Topic: Unable to load the specified metadata resource
Replies: 5
Views: 8221

problem solved

production server web.config section had a small difference from the development server.
by estern
Mon 13 Apr 2009 21:17
Forum: Entity Developer
Topic: Unable to load the specified metadata resource
Replies: 5
Views: 8221

Same error but with dot connect for Oracle

(Right-click on Project -> Add-> New Item...->Devart Entity Model).


I can add an Entity Model for SQL Server (have the trial version installed) but not an Entity Model for Oracle

Any suggestions?
by estern
Mon 23 Feb 2009 17:10
Forum: dotConnect for Oracle
Topic: deployment with SilverLight app
Replies: 1
Views: 1788

deployment with SilverLight app

on the development computer everything works

on the deployment server things work once and then stop working

to deploy I ran the licensed minimal install of DevArts dcoracle500pro.exe
and then copied from the development computer to the deployment server

devart.data.dll
devart.data.oracle.dll
devart.data.oracle.entity.dll
devart.data.oracle.web.dll

to the

c:\inetpub\wwwroot\myapp directory

and to the

c:\inetpub\wwwroot\myapp\bin directory

because the create, read, update, delete cycle worked once on the server I think I have an installation or licensing issue.

Has anyone resolved how to deploy dotConnect and have it work more than once?