CRVS2010 Beta - WPF / Entity Framework example?

Has anyone been successful integrating Entity Framework objects into the CR WPF viewer?  The designer seems to work, but all we get is a blank page.  Trying to load the entities directly runs into trouble from the "not-nullable" problem and the nullable custom entities don't shoe up in the field selector (not sure why). 
If you can share a positive experience, we'd appreciate it.

I've been able to produce a report of our Entity Framework data by moving the data into local objects.  The WPF Report Viewer seems incapable of referring to classes in other projects of the solution.  More importantly when I try to use the Database Expert to use certain objects (tables) which link to each other through foreign keys, I am unable (because of viewer errors) to display the report.  Is anyone else working in a similar environment?

Similar Messages

  • To download ODAC 11.2.0.2.50 Beta for Entity Framework

    from where can i download ODAC 11.2.0.2.50 Beta for Entity Framework?
    anyone please help me.

    So what can i use rather then 11.2.0.2.50 that will be supported for entity frame work
    i used "ODTwithODAC112030" but it is not supported by ADO. net entity model framework.
    my problem:
    i made a entity model but i cannot access data from oracle database.Nothing show in the client side data grid.

  • Where can I download ODAC 11.2.0.2.50 Beta for Entity Framework?

    Hello,
    An application I have been developing during the last quarter of 2011 was using ODP.NET 11.2.0.2.50 which was the last beta version with Entity Framework support before final release. I would like to upgrade to Release 4 now but unfortunately it is not likely to happen with the actual project. Problem is that since I lost the installer for both 32 and 64bits versions and that the download is not available on the Oracle Downloads website anymore I can't deploy the application on new machines.
    The name of the file was ODAC1120250Beta_EntityFramework_32bit.zip but I can't find it anywhere on the web or only leads to dead links. Would appreciate a bit of help on that.
    Thank you.
    Lionel.

    So what can i use rather then 11.2.0.2.50 that will be supported for entity frame work
    i used "ODTwithODAC112030" but it is not supported by ADO. net entity model framework.
    my problem:
    i made a entity model but i cannot access data from oracle database.Nothing show in the client side data grid.

  • Managed Beta 2 - Entity Framework projects not working

    Tried to do the simplest EF test I can think of:
    1. Removed all the Oracle stuff on my system, to get rid of the developer tools and such. Reinstalled the stock 11.2.3.0 client (without developer tools). Installed the new managed beta 2 in a new home, with development tools.
    2. Create a new .net 4 project (C# console app).
    3. Create a new Oracle connection, using the managed provider. Browsed tables around a bit, and this works.
    4. Create a new EF model, load tables from the database. This also works.
    Where it goes wrong is when I try to run it and do a query, I get this:
    ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.
    Inner ArgumentException: "Unable to find the requested .Net Framework Data Provider. It may not be installed."
    Explicitly adding a reference to Oracle.ManagedDataAccess and setting Copy Local = True didn't change anything. I'm not sure at this point what it's looking for, but it's not finding it.
    Also tried adding a configuration section and setting TNS_ADMIN, just in case it was that. That didn't solve it either. In fact I had to add this to the top of the config file to get it to even run after setting up the config:
    <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.112.3.60, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    I'll update the post if I figure out what's going wrong here, but it seems like this should be working.

    Answered my own question. Probably should have known this one since I ran into it in beta 1.
    This needs to be added to the config file:
    <system.data>
            <DbProviderFactories>
              <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client"
                   description="Oracle Data Provider for .NET, Managed Driver"
                   type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.112.3.60, Culture=neutral, PublicKeyToken=89b483f429c47342" />
            </DbProviderFactories>
          </system.data>Not 100% sure on that public key token, but it seems to work.

  • CRVS2010 Beta - WPF CrystalReportsViewer

    Hello,
    I am having the following problem.
    In my application, I have the need to change the reportSource for the viewer at some times.
    I used to have a code like this, for it:
                    ViewerCore view = ReportsViewer.ViewerCore;
                    view.ReportSource = EditingReport.ReportDocument;
    What happened is that right now I am using a MVVM framework and I don't have access to my CrystalReportsViewer in the ViewModel.
    I tried to bind the ReportSource of the ViewerCore in the xaml, but I cannot cause the ViewerCore is read-only.
    I also tried to extend the CrystalReportsViewer control but an exception is launched saying that the component does not have a resource identified by the URI '/SAPBusinessObjects.WPF.Viewer;component/viewershell.xaml'
    Does anyone has a solution for this?
    Thanks a lot!

    What about:
    crReportDocument.Load("C:\Crystal\crnet\vbnet_win_simplepreviewreport\World Sales Report.rpt")
            crConnectionInfo = New ConnectionInfo()
            With crConnectionInfo
                .ServerName = "Server1"
                .DatabaseName = "Pubs"
                .UserID = "myuser"
                .Password = "mypassword"
            End With
            'Get the tables collection from the report object
            crDatabase = crReportDocument.Database
            crTables = crDatabase.Tables
            'Apply the logon information to each table in the collection
            For Each crTable In crTables
                crTableLogOnInfo = crTable.LogOnInfo
                crTableLogOnInfo.ConnectionInfo = crConnectionInfo
                crTable.ApplyLogOnInfo(crTableLogOnInfo)
            Next
            myCrystalReportViewer.ViewerCore.ReportSource = "crReportDocument"
    I know you're trying to use C#, but this is what I had handy...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • CRVS2010 Beta - WPF Viewer and ReportSource

    I have been using the ReportSource from the viewer pre 2010 of visual studio.  Now that i upgraded and using the new crystal reports the ReportSource doesnt seem to be included with the WPF Viewer.  How do i bind my ReportDocument to the viewer.  I'm stuck cause their arent allot of examples out their and not sure what to do.
    Thanks
    Edited by: Don Williams on Jun 9, 2010 8:08 AM

    Also, see [this|http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/a09f7025-0629-2d10-d7ae-df006a51d1a8] demo.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • CRVS2010 Beta - WPF Viewer, how to hide the GroupTree control?

    All,
    I would like to turn off the display of the GroupTree for my reports using some property or function call? 
    I would also like to hide the text "Main Report" displayed in the status bar.  This is for the WPF viewer, not the WinForms viewer.
    Thanks,
    Stan

    For those who are using the WinForms viewer you can use the following code to hide/show the grouptree control.   Add this property to the class that is hosting the viewer.
    public bool ShowGroupTree
        set
              Control control = null;
              for (int i = 0; i < m_Viewer.Controls.Count; i++)
                  control = m_Viewer.Controls<i>;
                  if (control is ReportGroupTree)
                   {  //Hide the Group tree by default.
                       control.Visible = value;
                      continue;
    Edited by: Stan Harris on Aug 4, 2010 3:12 PM
    Edited by: Stan Harris on Aug 4, 2010 3:13 PM

  • CRVS2010 Beta - How do i use CR2010 with MVVM

    Hi,
    How do i bind an property of type ReportDocument to Crystal Report Viewer (WPF) trough XAML ?

    See if this thread helps:
    Re: CRVS2010 Beta - WPF CrystalReportsViewer
    Ludek

  • Add Data from DataGridView in Data entity framework

    private void ShtoArtikullin()
    //FaturatDetalet fd = new Faturatdetalet();
    System.Data.DataRow newrow = lvShitjetDetajet.NewRow();
    //fd.FaturaID = -1;
    int lastid = 1;
    //if (dtDetaletFatura.Rows.Count == null)
    lastid = lvShitjetDetajet.Rows.Count + 1;
    newrow["FaturaID"] = lastid;
    newrow["ArtikulliID"] = lvArtikujt.SelectedRows[0].Cells["ID"].Value;
    newrow["Emri"] = lvArtikujt.SelectedRows[0].Cells["Emri"].Value;
    newrow["Njesia"] = lvArtikujt.SelectedRows[0].Cells["Njesia"].Value;
    newrow["Sasia"] = 1;
    newrow["Cmimi"] = lvArtikujt.SelectedRows[0].Cells["Cmimi"].Value;
    newrow["Totali"] = lvArtikujt.SelectedRows[0].Cells["Cmimi"].Value;
    //DataRow r = newrow;
    //newrow["Barkodi"] = dgArtikujt.SelectedRows[0].Cells["Barkodi"].Value;
    dtDetaletFatura.Rows.Add(newrow);
    ////selektimi e percjell artikullin e fundit
    dgDetaletFat.Rows[dgDetaletFat.Rows.Count - 1].Selected = true;
    //dgDetaletFat.ClearSelection();
    //e fshin tekstin ne txtserch te artikullin e shtuar
    txtSearch.Text = "";
    I need this code to do in Data entity framework,this kode is to add data from one datagridview to another datagridview it work well in sqldataadapter but i need  to do in data entity framework  how to do this?

    If you add these entries to an observablecollection and put that in application.current.resources.  Use that same observablecollection in both datagrids. 
    When you add an entity in one DataGrid  then it will appear in the other one.
    Although it is not really what the sample is about, you can see a simple way to  share an observable collection across views in this:
    https://gallery.technet.microsoft.com/Dynamic-XAML-Composed-View-e087f3c1
    I don't quite follow where the selecting comes in with your code but that sample also uses the current item to share which is selected.
    I also recommend wrapping an entity in a row viewmodel.
    As I do in this:
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • Entity Framework in WPF Application - Using Statement or Implement IDisposable

    I have a WPF application that uses Entity Framework.
    I have implemented a Repository that implements IDisposable, that holds my EF context.  When the application starts up I new up a Repository, which news up an EF context, then when the application shuts down, I dispose of my Repository, which disposes
    the EF context as well.
    The end result is that my context remains open during the entire lifetime of the application.  
    I've been reading up on EF, and all the examples put the operations against the EF context in a using statement.  Is that the preferred approach?  What is the priority: to keep the context open briefly, or just to make sure you properly dispose
    of it when you're finished with it.
    Thanks.
    Aaron

    >
    https://msdn.microsoft.com/en-us/library/aa355056(v=vs.110).aspx
    That link is only for WCF and it's broken implementation of the Dispose pattern.
    >I have been burnt in doing it where the connection was not closed or disposed when it short-circuted out of the Using statement on exception
    If so, it was a bug.  You should expect that not to happen.
    'using' will close your connection, unless the connection was open before the DbContext and was passed in.  'using' is the safest way to ensure that the connections are closed in a timely manner.
    David
    David http://blogs.msdn.com/b/dbrowne/
    I absoultly do not agree with you. I have been burnt in using the Using statment. And it was along the lines that an excpetion was thrown within the Using statement and no closing of the connection or dispoiong of it ever occured, which is what the WCF example
    is showing on how a Using statement can be short-circuted and things can go wrong.
    I don't care if the Using statement issue is being shown on a WCF typed cleint. I do the same thing in using straight up ADO.NET or EF, becuase I have been burnt by the Using statement, and I dont use them to open,  close or dispose of a connection.

  • Entity Framework vs NHibernate, which is better

    I currently use ADO.Net and I would like to switch to Entity Framework, but my co worker uses NHibernate and says its more mature than Entity Framework. I just wanted to get opinions on the difference between the two and which one is better (easier to use, better performance, etc)chuckdawit

    On 1/2/2012 2:36 PM, Gaurav Arora wrote:
    > I was too in doubt before read this post :
    >
    http://ayende.com/blog/4351/nhibernate-vs-entity-framework-4-0
    >
    > EF4.0 is having much matured than earlier versions but still it needs
    > ages to get stable as nHibernate
    I have nothing against nHibernate. I have worked with it in 3 shops. In
    one shop,  nHibernate was an absolute dog, and it was dead slow.  In the
    other shop nHipernate was ok with the speed and was using Afluent.
    However, in both of those shops nHibernate was a PITA to deal with, and
    one had to build all those objects by hand. The other shop had a 3rd
    party version of nHiberate that had a designer that built the objects,
    but it was too slow, and the shop went back to ADO.NET and T-SQL/

  • Need some samples to make Entity framework interact with WPF

    HI guys,
    I need to create an app which will query all details about customer from very big database for different search crieria. I don't have any sp to call individual section details of customer. so i planned to go with Entity framework and WPF. Both are new to
    me.
    Could someone please help me  with creating good WPF application (beautiful look and feel) & entity framework interaction with DB?
    or any other to make this requirement in an easy way with latest technologies.. All i need some good UI for searching customer details..
    thanks in advance
    Regards
    bala
    Balamurugan

    I (obviously) agree my sample is something to look at.
    Since it's the first in a series rather than a complete guide it cuts a number of corners.
    One to emphasise is that I almost never allow a user to edit in a datagrid directly.
    I either use popups so they are forced to work on one record at a time.
    Or I have a different usercontrol for a particular task a user does - like raising an order say.
    The second in the series is on the way.  Not sure when exactly but next month.  I have the code ready but I've not written the article for it yet.  Depending on your timescales you might find that useful.
    Also read this:
    http://social.technet.microsoft.com/wiki/contents/articles/26673.wpf-collectionview-tips.aspx
    That explains some dynamic filtering on the client and touches on a way to haul bits of a HUGE set of data onto the client.
    You definitely don't want to do that all at once.
    The thing to emphasis is you should always be looking to give the user a subset to look at.
    Think in terms of  a maximum of 200 to 300 records at a time in a datagrid.
    Linq with EF offers pass through queries.
    You will almost certainly want to use that feature in order to pick all the customers starting with the letter A or in town xyz or whatever.
    You use  linq on the client and it is turned into sql on the database.
    One thing which is sort of odd about linq is that the sql is generated when you iterate a collection.  That has an odd benefit which is great for flexible querying.
    You can base one linq query on another and chain your various criteria together.
    That only generates sql when you use that end result.
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • How to create ViewModel in an MVVM application using entity framework where database has many-to-many relationship?

    I have started developing a small application in WPF. Since I am completely new to it, to start with I took a microsoft's sample available at
    Microsoft Sample Application and following the pattern of the sampke I have been so far successful  in creating four different views for their corresponding
    master tables. Unfortunately, I have got stuck up as the sample does not contain pattern for creating ViewModel when there is a many-to-many relationship in the database. In my application, I have the following data structure:
    1. Table Advocate(advId, Name)
    2. Table Party (partyId, Name)
    3 Table Case (caseId, CaseNo)
    4. Link Table Petitioner (CaseId, PartyId)
    5. Link Table Respondent (CaseId, PartyId)
    6. Link Table EngagedAdvocate(CaseId, advId)
    7. Link Table EngagedSrAdvocate(CaseId, advId)
    In the scenario above, I am a bit confused about how to go forward creating the required ViewModel which would render me to have multiple instances of Petitioners, Respondents, Advocates and SrAdvocates.
    Please explain details in step by step manner considering that whatever work I have completed so far is a replica of Microsoft's sample referred above. I would also like to mention that I have developed my application
    using VB.net. So please provide solution in vb.net.
    After getting many-to-many relationship introduced into my application, it would achieve one level above the sample application and I would like to share with the community so that it could be helpful to many aspiring developers seeking help with MVVM.

    Hi ArunKhatri,
    I would suggest you referring to Magnus's article, it provides an example of how you could display and let the user edit many-to-many relational data from the Entity Framework in a dynamic and data-bound DataGrid control in WPF:
    http://social.technet.microsoft.com/wiki/contents/articles/20719.wpf-displaying-and-editing-many-to-many-relational-data-in-a-datagrid.aspx
    You can learn how to design the ViewModel and the relationship between the entities.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • CRVS2010 Beta - Cannot find documentation on what needs to be installed

    My question is very elementary but I do not see anything in the release notes, etc. that tells me which of the 3 install files I need to iinstall or do I need to install all of them.
    1 - SAP Crystal Reports, version for Visual Studio 2010
    2 - SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit)
    3 - SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit)
    I want access to the WPF component in VS 2010 on a Win 7 64bit machine
    Do I install all 3?? In what order? 1 - 2 - 3 as I've shown?
    I have Crystal 2008 installed on my machine. Must I uninstall it to use the Crystal VS 2010 beta on that machine.
    To date I tried installing just #1 above. I went into my VS 2010 selected the WPF and it blew up VS 2010, I tried doing the same with Winform and it also took out VS 2010.
    I have since uninstalled everything. Could someone explain the procedure(s) for making the beta available to VS 2010 with a little more detail.
    Thanks

    Hi,
    You might want to check this [thread|Re: CRVS2010 Beta - about downloading file].
    Thanks,
    Saurabh

  • CRVS2010 beta 2 - header underline adding spaces

    Hello,
    I'm noticing that headers that are 2 words and the second word is a number, there is a space/break in the underline
    For example Address 1 instead of Address 1.
    I reported this in beta 1 (see CRVS2010 beta - header underline adding spaces) and hoped that it would have been fixed.
    I'm wondering if it is on the list of things to fix for the final release.
    Thank you.

    I assume you are referring to the embedded designer's preview is breaking the underline betweeen the word and the number (ie: Address 1).  I am able to reproduce with the CR for VS 2010 Beta2. 
    I found that the WinForms and ASP.NET CR runtime viewers do not have this issue but the WPF viewer does have this issue.
    I will log a bug for both issues.
    As a potential workaround, instead of underlining the field, format the object (right-click the object and select Format Object), on the Border tab, set the Bottom line style to "Single".  This is not ideal but it may work for you.
    -Mandeep

Maybe you are looking for

  • How to define parameters in a FORM portlet

    Is there a way to define parameters in a form portlet? I am trying to create a form with the "OmniPortlet-Simple Parameter Form" functionality so that I can have dynamic LOVs instead of hard-coded ones.

  • Problems with LR4.4

    I downloaded LR 4.4 today and since then many of my catalogue previews have an exclamation mark and say "There was an error working with this photo".  What is this all about and how do I fix it?

  • Using a single connection for jsp, servlets and classes

    Hi! I'm building a web site that uses JSP, Servlets and some classes. I use database access in all my pages. I want to open a connection and use it for all the pages while the user is in my site, so I don't need to open a connection with every new js

  • Creating AS3 code for C++ classes converted with Alchemy (a là Box2D)

    So I've a collection of C++ classes which I now have converting fine with Alchemy to a swc file and can call the exposed functions fine from my AS3 code. What I'd really like to do is recreate stuff like Box2D's b2Vec.as class, public class b2Vec2 ex

  • What is latest compatible firefox to mac osx 10.4.11

    i have firefox 3.6.20 am told this will soon be out of date and not supported. am invited to upgrade then upgrade noes not work and i have to dump it and find the old one again. what is latest cle firefox to mac osx 10.4.11ompatib