How to Overcome DomainOperationEntry overloads are not supported in C#

  Hi Team ,
I have a assigmmnet to finsh . requerment is
1) I have to Comboboxes one is cmbDomain , second one is cmbSubDoamin
  based on selected value in cmbDoman , cmbSubDoamin has to fill.
 for this  I  am  using WCFRIA Serivice
In sercive I have two methods like bellow.
//for Domain
public IQueryable<DomainGroup> GetDomainGroups()
return this.ObjectContext.DomainGroups;
// for SubDoamin
public IQueryable<Domain> GetDomains()
return this.ObjectContext.Domains;
//for subdomain based on selected value in Domain
public IQueryable<Domain> GetDomains(string selectedDomain)
return this.ObjectContext.Domains.Where(x => x.Title.ToUpper() == selectedDomain.ToUpper());
in Silverlight i implimented bellow code
<riaControls:DomainDataSource x:Name="source" QueryName="GetDomainGroups" AutoLoad="True"> <riaControls:DomainDataSource.DomainContext>
<domain:DomainService1/> </riaControls:DomainDataSource.DomainContext>
</riaControls:DomainDataSource>
<riaControls:DomainDataSource x:Name="SubDomainSource" QueryName="GetDomains" AutoLoad="True">
<riaControls:DomainDataSource.DomainContext>
<domain:DomainService1/> </riaControls:DomainDataSource.DomainContext>
<riaControls:DomainDataSource.QueryParameters>
<riaControls:Parameter ParameterName="selectedDomain" Value="{Binding Path=SelectedValue,ElementName=cmbDomain}"/> </riaControls:DomainDataSource.QueryParameters>
</riaControls:DomainDataSource>
<StackPanel Orientation="Vertical">
<!--<sdk:DataGrid x:Name="domainGrid" ItemsSource="{Binding Data, ElementName=source}" Height="200" Width="200"/>-->
<sdk:Label Content="Domain"/>
<ComboBox x:Name="cmbDomain" ItemsSource="{Binding Data,ElementName=source}" DisplayMemberPath="Title" Height="50" Width="100"></ComboBox>
<sdk:Label Content="Sub Domain"/>
<ComboBox x:Name="cmbSubDomain" ItemsSource="{Binding Data,ElementName=SubDomainSource}" DisplayMemberPath="Title" Height="50" Width="100"></ComboBox>
</StackPanel>
 if any one help it could be a great support for me .
Srilatha

You can't use overloads.
You need to rename one of your GetDomains:
public IQueryable<Domain> GetDomains()
return this.ObjectContext.Domains;
//for subdomain based on selected value in Domain
public IQueryable<Domain> GetDomains(string selectedDomain)
return this.ObjectContext.Domains.Where(x => x.Title.ToUpper() == selectedDomain.ToUpper());
from
https://msdn.microsoft.com/en-us/library/ee707366%28v=vs.91%29.aspx?f=255&MSPPError=-2147217396
General Rules for using Inheritance            
The following rules apply to using inheritance with RIA Services.
Inheritance is supported only for entity types. Non-entity types are treated as the type specified in the domain service operation signature.
Interface types are not supported for return values or parameters in domain service operations.
The set of types in an inheritance hierarchy must be known at the time of code generation. The behavior for returning a type not specified at the time of code generation is unspecified and implementation-dependent.
The virtual modifier on public properties and fields for an entity type is permitted but ignored when generating the corresponding entity type on the client.
Method overloads for domain service operations are not permitted.
The new (C#) and Shadows (Visual Basic) keywords on public properties are not allowed on entity types and will result in an error when client code is generated.
LINQ query capabilities related to inheritance cannot be translated for execution of domain service methods. Specifically,
OfType<T>, is,
as, and GetType() operators and methods are not supported.  However, these operators may be used directly against
EntitySet or
EntityCollection<TEntity> in LINQ to Objects queries.
Hope that helps.
Technet articles: Uneventful MVVM;
All my Technet Articles

Similar Messages

  • Since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    A Davey1 wrote:
    Not a nice answer!
    Posting "Check the 'More like this'" area and not simply providing the answer is a great way to make these groups worthless.
    You're ignoring context.  On the old Apple Discussion Groups I never posted replies like that, instead giving people relatively detailed answers.  The new Apple Support Communities made things worse by introducing certain inefficiencies.  Then came Lion.  The flood of messages that came with Lion required a painful choice for any of the people who had been helping here: (1) Give quality responses to a few questions and ignore the rest.  (2) When applicable, give a brief answer such as the one that you found objectionable.  (3) Give up all the other normal activities of life and spend full time trying to answer questions here.
    People who needed help with Lion problems seemed to have trouble discovering existing message threads that described how to solve their problems.  I never posted the suggestion of "Check the 'More like this' area" without verifying that the help that the poster needed could be found there.  Even doing that, what I posted saved me time that I could use to help someone else.
    The people helping here are all volunteers.  None of them is being paid for the time they spend here.  They all have a life outside of Apple Support Communities.  It's arrogant of you to demand that people helping here spend more time than they already do.

  • Hi, I want to purchase adobe photoshop, however I'm based in Zimbabwe and Zambia and I received a notification that these areas are not supported. How do I purchase adobe photoshop using a paypal account?

    Hi, I want to purchase adobe photoshop, however I'm based in Zimbabwe and Zambia and I received a notification that these areas are not supported. How do I purchase adobe photoshop using a paypal account?

    Adobe Resellers http://adobedealreg.force.com/PartnerSearch?lang=en
    -http://www.adobe.com/content/dam/Adobe/en/products/creativecloud/cc/pdfs/cc-availability-m atrix.pdf

  • HT4796 I just downloaded the Windows Migrator and tryed to open it.  A window popped up saying "YOU CANT OPEN THE APPLICATION BECAUSE MICROSOFT APPLICATIONS ARE NOT SUPPORTED ON OS X".  How do i transfer my file?

    I just downloaded the Windows Migrator and tryed to open it.  A window popped up saying "YOU CANT OPEN THE APPLICATION BECAUSE MICROSOFT APPLICATIONS ARE NOT SUPPORTED ON OS X".  How do i transfer my files?

    An .exe application is compiled for Windows. It will not run on a different OS. If you need to run this program, then you will have to install Windows on your Mac. Either as a separate bootable partition, or running in a virtual machine, such as Parallels or VMWare.

  • How can I get GV and HDV files imported to Premier Elements 13. I know now that they are not supported. But does it exist ways to get them. I use camera HDR-HS7E?

    How can I get GV and HDV files imported to Premier Elements 13. I know now that they are not supported. But does it exist ways to get them. I use camera HDR-HS7E?

    skjeggi
    What is this HDR-HS7E - a miniDV camcorder that lets you do DV and HDV capture firewire?
    True, the DV and HDV capture firewire into the Premiere Elements 13 Capture window is gone. But, have you
    looked at the workaround suggested by PRE_help in this forum. The workaround is found in the following
    Adobe document....
    http://helpx.adobe.com/premiere-elements/kb/removed-features-formats-elements.html
    When your schedule permits, please let us know if that worked for you.
    Thank you.
    ATR

  • Error message pops up:  url files of type "file:" are not supported.  How can I get rid of this?

    Error message pops up:  url files of type "file:" are not supported.  How can I get rid of this?

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • How come my song are not supported by my iphone

    i have tried to sync song to my iphone and i get the error that some song are not supported by my iphone. can someone help thanks

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes or iPhone forums.
    Regards.

  • BBPGETVD - error:backend systems with release 700 are not supported

    Hi,
    When I am trying to replicate vendor data from EEC to crm 4.0 via BBPGETVD.
    I get the error message"backend systems with release 700 are not supported"
    Is anyone have Idea what is wrong? and how can fix it?
    Thanks,
    Rachel

    Yossi,
    I believe that standard transaction does not work with ECC 6.0.  The standard response would be to upgrade your CRM system to 5.0 so that you can download vendors from ECC 6.0.
    Bascially the vendor replication programs in CRM below 5.0 aren't really that reliable for delta downloads(one error will cause an entire load to fail).  So you probably at best should copy the SAP standards to generate custom load programs as a starting point.
    It is not too difficult and overcomes some of the restrictions that SAP puts in place(i.e. you can only use one number range for vendors downloaded, etc.).  This is definitely one of the weak points of CRM 4.0 that was fixed in CRM 5.0.
    If you have more questions on this let me know.
    Take care,
    Stephen

  • "one or more of the items in your selection contains Aperture albums that are not supported in iphoto".

    I have some folders in iPhoto called 'Recovered Folder'. When I try to delete them I get this message: "one or more of the items in your selection contains Aperture albums that are not supported in iphoto".
    I don't use Aperture (did install it to try it out), and have deleted Aperture App from my Mac.
    How can I get rid of these fodlers?

    i finally figured this out:
    fyi, iphoto and aperture can now share (i.e., access) the same library. apple details it here:
    http://support.apple.com/kb/HT5260?viewlocale=en_US&locale=en_US
    i use both iphoto and aperture, and i suspect something went amiss, at some point, while aperture was accessing my iphoto library.
    this is how i fixed the problem:
    i launched aperture, then (per the instructions linked above) switched to (i.e., accessed) my iphoto library. i was then able to delete the "recovered folder" and the album it contained. i then quit aperture and relaunched iphoto.
    NOTE: at that time, although i expected the "recovered folder" to be gone, it was still present. but this time, i was able to delete the folder from within iphoto without the "contains aperture items" error message.
    (Sparky030405, i realize you've since deleted aperture. while i can't say my method is the *only* way to solve this problem, it's the way i was able to solve it. so, you might consider reinstalling aperture in order to delete the folder, then uninstalling aperture, once again.)

  • Save as PDF and Save PDF as PostScript options in the Printer dialog are not supported.

    I downloaded Indesign CS3 trial and liked everything about it until I attempted to print to postscript and got that message. Nothing I have tried has helped. I have seen in various forums that others are having the same problem, but haven't found any solution offered. I am running Tiger 10.4.10 on a new Intel Imac with 3G ram. This is a procedure I use very often in my workflow, and have never had this problem with CS2 on my PC or other Macs. Is there a solution? I downloaded the .1 update and installed that and it didn't change anything.

    PLEASE SOMEONE HELP ME.
    Its the first time Im using print booklet option to save my file. I have the same problem when trying to save as pdf and get the
    "The Save as PDF and Save PDF as PostScript options in the Printer dialog are not supported."
    I'm trying to save a .pdf of a booklet of a facing pages document of A4 size each facing page for a whole size A3, then hope to let the pages be correctly arranged by inDesing, then print and staple.
    Meaning pages will be like this - Page #60 left side [of the A3] - page #1 right side [of the A3] , page # 2 right side[of the A3] - page #59 left side[of the A3] etc...
    I CANT DO IT. I tried to follow Melvin Thompson , but when I choose save .ps and open it in preview all I see is independent a4 pages and just the left ones , .. How can I save my file as .pdf ready to be printed in a3 ?
    I really appreciate any help.

  • "there was a problem connecting to the server. URLS with the type 'file' are not supported"

    i have a new macbook pro 13" and every 6 minutes or so it pops up a window that says "there was a problem connecting to the server. URLS with the type 'file' are not supported". it never seems to cause any problems but is supremely annoying. how can i make this come to an end?

    I tried someone's solution of taking another external disc and plugging it in, then when it showed up and time machine asked if I wanted to use it or that someone might be trying to trick me, I chose not use it.  Then I  shut down my computer, plugged in the original Lacie, and rebooted the computer and all seems to work fine now-- the Lacie appears on my desktop and all seeems to be in working order. Who knows why or anything else,- as weird as it gets- but for now things seemed fixed--- maybe others can try this too-- it worked for me so far.

  • Message - There was a problem connecting to the server. URLs with the type "file:" are not supported

    new macbook pro receving this message: There was a problem connecting to the server. URLs with the type "file:" are not supported. What is causing this and how do

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • There was a problem connecting to the server. URLs with the type "file:" are not supported. OK

    I have just upgraded to Mountain Lion from Leopard, but now I keep getting this message when I open some web-pages and every time I wake the Mac up after going to sleep. For some odd reason I get it in Swedish sometimes (installed language) and some times in English...
    There was a problem connecting to the server.
    URLs with the type "file:" are not supported.
    OK
    What is this and how can I get rid of it. I use Firefox and have updated to latest version.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • Icube_values are not supporting in bi7

    Hi  All,
    We are migrating Updates to Tranformations.Actuvally we migrated one of the update rule into transformations by selecting the update rule and by   creating transformations from additional functions.We got some syntax erros saying that   Field "ICUBE_VALUES" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement.I think ICUBE_VALUES are not supported in ABAP 00.
    Can any one please let me know how to remediate in this particular case.
    below is my coding
    FORM routine_0001
      CHANGING
        RETURNCODE     LIKE sy-subrc
        ABORT          LIKE sy-subrc
      RAISING
        cx_sy_arithmetic_error
        cx_sy_conversion_error.
    init variables
    not supported
         icube_values = g.
         CLEAR result_table. REFRESH result_table.
    fill the internal table "MONITOR", to make monitor entries
      RESULT_TABLE = ICUBE_VALUES.
      IF COMM_STRUCTURE-/BIC/ZMOTC NE 0.
         RESULT_TABLE-/BIC/ZDCUAMT  = COMM_STRUCTURE-/BIC/ZMOTC.
         RESULT_TABLE-CURRENCY       = COMM_STRUCTURE-CURRENCY.
         RESULT_TABLE-ACCOUNT        = '00154326666'.
         RESULT_TABLE-CHRT_ACCTS     = COMM_STRUCTURE-COMP_CODE.
         RESULT_TABLE-/BIC/ZDNNPLA  = 1.
            APPEND RESULT_TABLE.
      ENDIF.
      IF COMM_STRUCTURE-/BIC/ZDHSTOC NE 0.
         RESULT_TABLE-/BIC/ZDCYAMT  = COMM_STRUCTURE-/BIC/ZDHSTOC * -1.
         RESULT_TABLE-CURRENCY       = COMM_STRUCTURE-CURRENCY.
         RESULT_TABLE-ACCOUNT        = '002374949949'.
         RESULT_TABLE-CHRT_ACCTS     = COMM_STRUCTURE-COMP_CODE.
         RESULT_TABLE-/BIC/ZDNNPLA  = 1.
          APPEND RESULT_TABLE.

    Hi,
    Please check the thread below:
    Return code code need to change from bw to BI
    -Vikram

  • Actions on button or MovieClip instances are not supported in ActionScript 3.0?

    I have recently updated my Flash and I seriously regret it as everything seems to of changed. For instance I want to publish a movie i created in Action Script 3.0. In this movie i have buttons which have actions applied to them and everytime i go to publish the site, it brings up the error
    'WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored.'
    How do I go about keeping my 3.0 elements but having buttons with actions applied to them. I am a complete beginner with Flash by the way so the answer would need to be completely straight forward.
    Thanks!

    okay, just to simplify this even further and to break it into steps..
    1: I Create a new button.
    2: I give it an instance name of say 'button'
    3: I place the following code in the timeline
    button.addEventListener(MouseEvent.CLICK,callFunction);
    function callFunction(e:Event):void{
    gotoAndPlay();
    Now here is where I am stuck. What do you need to add to this to navigate to another scene?
    Thanks again!!

Maybe you are looking for

  • How to display the message in Pop Up

    Hi All, I have BSP page, in which there is a button. On click of the button a pop will open in which a table is displayed. And in the same Pop Up we have two more buttons. One is to Perform certain process be selecting a record in the table displayed

  • Billed for transfer to new address but three month...

    After three months and continuous calls to BT they have just sent an engineer who agrees there is no connection nor is one possible with  the current cabling  situation. BUT bt took £130 from my account and the first quarters rental. Now I  have to t

  • The ORDER BY clause is invalid in views, inline functions, derived tables..

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Micros

  • Mass sales order costing(ck55) error

    hi If i do individual sales order costing , no error.But same sales order has done in ck55,error"item is not relevant for billing" ,but in single sales order costing is ok, .what is reason. system message   Item is not relevant for billing     Messag

  • See a list of all certificates possible?

    Hi, maybe i am a bit naive but i hope that there is a possibility to see all my certificates. My issue is that i need to create a certificate list with the date of expire of each certificate. We use Weblogic 10.3. I have access via unix or web interf