Is it possible to update the data in entity via System.Data.Entity.DbSet entity

 If i want to insert a record in dynamically created entity, i can do something like,
System.Data.Entity.DbSet entity = Request.Context.Set(obj.GetType());
Object Updated = entity.Add(obj);
but if i want to update the record in same entity how can i do that? Please help i am new to EF.

Hello Sidra,
>>but if i want to update the record in same entity how can i do that? Please help i am new to EF.
If you use the object type, you need to modify its properties by using reflection because at compile time, the type is not known to compiler:
https://msdn.microsoft.com/en-us/library/axt1ctd9(v=vs.110).aspx
Regards.
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.

Similar Messages

  • Is it possible to update the comments field once receiving is done

    Hi All,
    Can anyone of You help on this.
    We have done the receiving against one PO. The material is receipt and delivered in the Inventory.
    User has enter in-correct details in the comment field (both at header and line level) during receiving.
    Now we need to update the comments section with some new commnets.
    Apart from backend/ database update, is it possible to update the comments section since receiving is already done. Please suggest some alternate option.
    Thanks
    Sujay

    Hi Sujay,
    You won't be able to update the comments once received.
    Alternate approach: Perform correction transactions to reverse all the receiving transactions and re-receive again entering correct comments.
    Thanks,
    PS.

  • Possible to "Update" the SDK rather than download entire 1+ GB file?

    Is it possible to "Update" the SDK from an older one rather than download the entire SDK again?
    Thanks

    Short answer: no.
    You would probably have to replace the individual files in the way that you want.
    Just leave the download on overnight if your connection is that slow.

  • Is it Possible to Save the existing querry in Prod System

    Hi Gurus
    Is it possible to save the existing Querry in Production system with another name.if yes pl. tel the procedure.
    thanks and regard kumar. [email protected]
    Message was edited by:
            s k

    Hi s k,
    You can do the query copy in the DEV (development system) & transport the request to the PRD (production system).
    This is the SAP recommended best practise.
    However, you can also directly do the query copy in PRD system, provided you (sap login) have the authorizations to do the same.
    For more information on SAP query, check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm
    best regards,
    Thangesh

  • How to get dates with respect to System Date?

    Hello,
    I am trying to get Date value after 30 days of my System current date. I am using
    System.out.println(new java.util.Date(System.currentTimeMillis()+30*3600*24*1000));
    but I am not getting correct date.
    Suppose my system date is 15July then after executing this code I should get 14Aug, but it is giving a date of month June.
    Please suggest solution for this.
    Thanks,
    Niket

    This doesn't have anything to do with the Collections Frameworks. You should direct this type of question to "Java Programming".
    Here is the code you're looking for anyway...
    import java.util.*;
    import java.text.*;
    public class thirty
        public static void main(String[] args) throws ParseException
         Calendar todaysdate = new GregorianCalendar();
         SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
         System.out.println("today's date: " + sdf.format(todaysdate.getTime()));
         todaysdate.add(Calendar.DATE, 30);
         System.out.println("thirty days later: " + sdf.format(todaysdate.getTime()));
    }

  • ESS Bank Information errors if end date is less than system date

    Hi to all,
    We have create an WD Java aplication to create new entries in infotype 0023. We have used a standar component DC (PersInfo).
    The first problem - we couldn't create new entries if start date is less than system date and we used:
    In transaction SPRO got to Personnel Management>Employee Self Service>Service Specific Setting-->Change Default Start Date
    Business Add-In HRXSS_PER_BEGDA. You can set the date in the DEFAULT_DATE method.
    Parameters of the method DEFAULT_DATE:
    MOLGA (Importing)
    PERNR (Importing)
    INFTY (Importing)
    SUBTY (Importing, optional)
    BEGDA (Changing)
    We have solved the first problem with begda.
    The second problem - we couldn't create new entries if end date is less than system date.
    Can anybody helps me about this second problem?
    Thank a lot.

    Can anybody helps me?
    Thank a lot.

  • ESS Information errors if end date is less than system date

    Hi to all,
    I have create an WD Java aplication to create new entries in infotype 0023.
    First problem: At the beginning I couldn't create new entries if start date is less than system date. To solve this problem I used:
    The transaction SPRO to go to Personnel Management>Employee Self Service>Service Specific Setting-->Change Default Start Date
    In HRXSS_PER_BEGDA I changed BEGDA to 01.01.1900 in the DEFAULT_DATE method and i solved the first problem.
    Now I need solved the second problem - we couldn't create new entries if end date is less than system date.
    In this method DEFAULT_DATE I can't change ENDDA because ENDDA isn't a parameter in this method.
    MOLGA (Importing)
    PERNR (Importing)
    INFTY (Importing)
    SUBTY (Importing, optional)
    BEGDA (Changing)
    Can anybody helps me about this second problem?
    Thank a lot for your help.

    I am creating an aplication WD Java:
    - This application uses a R3 Function Module HRXSS_PER_MODIFY_PNNNN
    - This FM uses the method CALL METHOD xss_adapter->modify
    - This Method uses IF_HRPA_PERNR_INFTY_XSS~MODIFY
    - This method uses:
      IF buffer_entry-container->a_pskey-endda < user_today.
        msg-msgid = 'PG'.
        msg-msgty = 'E'.
        msg-msgno = '016'.
        msg-msgv1 = 'Data valid only for past is not'(009).
        msg-msgv2 = 'allowed;'(010).
        msg-msgv3 = 'correct'(011).
        msg-msgv4 = 'end date to a date today or future date.'(012).
        CALL METHOD message_list->if_hrpa_message_handler~add_message
          EXPORTING
            message = msg
            cause   = xss_adapter_generic.
      ENDIF.
    How can I change the value user_today?
    This value is a parameter for the method GET_INSTANCE in CL_HRPA_PERNR_INFTY_XSS, but I don't know when this method is called.
    Can you help me?

  • Hi I bought a macbook in 2007/2008 and am wondering if it is possible to update the operating system? Here are my system details: Hardware Overview:    Model Name:     MacBook   Model Identifier:     MacBook4,1   Processor Name:     Intel Core 2 Duo   Pro

    Hi, I bought a Macbook in 2007/2008 and am wondering if it is possible to update my system so I can get the new version of iTunes?
    Here are my current system details: Mac OsX Version 10.5.8
    Hardware Overview:
      Model Name:    MacBook
      Model Identifier:    MacBook4,1
      Processor Name:    Intel Core 2 Duo
      Processor Speed:    2.4 GHz
      Number Of Processors:    1
      Total Number Of Cores:    2
      L2 Cache:    3 MB
      Memory:    2 GB
      Bus Speed:    800 MHz
      Boot ROM Version:    MB41.00C1.B00
      SMC Version (system):    1.31f1

    The model 4,1 can run a maximum of 10.7 Lion.  The 10.6 Snow Leopard DVD is in the Apple online store. You can get it for $19.99. After you’ve installed that then download the 10.6.8 combo updater to finish it off. http://support.apple.com/kb/DL1399 You will need to be running 10.6.8 to access the App Store to order Lion. http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    System Requirements for 10.6:
    Mac computer with an Intel processor
    1GB of memory
    5GB of available disk space
    DVD drive for installation
      Some features require a compatible internet service provider: fees may apply.
    You can upgrade from 10.5 to 10.6 with no problems as long as you have at least 1gb of RAM. Any program that runs under 10.5 should run under10.6. See this list for third party programs compatibility with 10.6: http://snowleopard.wikidot.com/  You might have to upgrade some drivers for printers, etc.... And you will have to install Rosetta if you have any Power PC applications 
    http://www.macobserver.com/tmo/article/snow_leopard_installing_rosetta/  
    Once you are at 10.6.8 Lion is still available from Apple. You will have to call Apple Customer Care 1-800-692-7753 or 1-800-676-2775. to purchase it. Then within 3 days you will get an email with a code which you can use to download Lion from the App Store. Or go to http://store.apple.com/us/product/D6106Z/A/os-x-lion and purchase it there. The price is $19.99.
    Lion will require at least 2gb of RAM but really needs 4gb to run smoothly.
    As for third party programs see this list for compatibility with 10.7 http://roaringapps.com/apps:table
    Also Lion doesn't run any Power PC programs. To see if you have any Power PC programs go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up select Applications under Software. Then look under Kind to see if any of your applications are listed as Power PC. Universal and Intel will run under Lion.
    Before Mac switched to Intel processors in 2006 they used Power PC processors from 1994 to 2005. Power PC 601 through 604, G3, G4 and G5. Applications written for the Power PC processors need the application called Rosetta to run on Intel processors. This was part of the Operating System in 10.4 and 10.5 but was an optional install in 10.6. With 10.7 Lion Apple dropped all support for Power PC applications.

  • Is it possible to update the human task payload without using worklist API but only using advance routing rule.

    Hi,
    I have one human tasks in BPEL process in which i am using different stages and with using advance routing rules i am routing my task payload to one stage to another.My payload has Task Status and Branch,after approving the human task from first stage I want to send modified value of the Task Status to the next stage without using worklist API or manual updation but only using the advance routing rules,is it possible ??? If anyone have any idea about this than please enlight me with your valuable solutions and  advices...
    Thanx
    Regards
    Ajral

    Hi SamGoe,
    According to your description, my understanding is that you want to update the PoerPoint slide from SharePoint 2010 slide library automatically.
    It seems to be not necessary to use Macros. SharePoint provides an OOB way to notify you to check for update to the slide library slides when you open the presentation. PowerPoint does this because you selected the option
    Tell me when this slide changes when you copied the slides from the library.
    More information, please refer to the link below:
    http://office.microsoft.com/en-us/powerpoint-help/sharepoint-slide-libraries-ii-use-slides-in-the-library-RZ010254089.aspx?section=6
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Is it possible to set the heap size limits in system-wide config?

    Hi,
    I am trying to set the JRE heap size limits (-Xms and -Xmx) by using the system-level deployment.properties file. The JRE version is 1.6 update 6.
    Normally, I would have something like this in the user-level deployment.properties file:
    deployment.javapi.jre.1.6.0_06.args=-Xms64M -Xmx192MHowever, when the same line is put in the system-level properties, it does not seem to have any effect. I have tried different options, also unsuccessfully:
    javaplugin.vm.options=-Xms64M -Xmx192M
    or
    javaplugin.minHeapSize=64m
    javaplugin.maxHeapSize=192mIs it not possible to address this setting via system-level properties at all? I am hoping that I will not have to resort to per-user config files.
    Best regards,
    Martin

    Hi Michael,
    thank you for your answer. I am sorry, I was unable to find the link to the message 10144001.
    My ultimate goal would be setting the system level settings as opposed to settings per applet. I was unable to find any mentioning of "deployment.javapi.jre.X.X.X_XX.args" in the official documentation here: http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html
    Best regards,
    Martin

  • Current Date one hour before system date

    Hi,
    When I use java.util.Date currentDate = new Date(); the result turns out to be 1 hour earlier before my system date. Does anybody know how this is possible?
    Greetings,
    Marcel

    koekie17 wrote:
    - Control Panel -> Regional and Language Options -> [tab] Regional options -> Language and Location dropdownboxex changed to my country
    - Double click on time in Windows taskbar -> [tab] Timezone -> Selected GMT + 1
    I kind of doubt that the first has anything to do with it. Nothing I saw said anything about daylight savings time (DST.) I know the second doesn't fix it. The second sets the timezone without daylight savings time (DST).
    Only way I know for sure There might be some way via the control panel.
    taskbar ->"Adjust Date/Time"->Timezone tab->check box (at bottom) "Automatically...for daylight saving changes"

  • How to fill date key figure with system date?

    Dear All,
    We would like to set on specific action (button press) to assign current system date top a date key figure within our infocube.
    Any idea how to achieve this?many thanks in advance for any idea!
    Kind Regards
    Olivier DESFOUR

    Dear Khaja,
    I'm not exactly using an update rule, i'm using Integrated Planning component.
    Customer would like to set this key figure on user action; ie for example
    user validate a step within planning process by pressing a button on workbook.
    then system is stamping system date within cube.
    Hope it helps
    Kind regards
    Olivier

  • ESS Bank Information errors if start date is less than system date

    Hello Developers,
    We are unable to create a new Bank Information record of type "Other"  from ESS Web Dynpro ECC 6.0 when we set the begda field to a date earlier than the system date.  When we attempt this we get the message: "Start date should be after <todays date> or later".
    Is there a configuration setting that will allow new records to be created with the begda set to a past date when creating new "Other" bank type records?
    Our payroll runs bi-weekly and we need to set the beginning date of a new record to the start date of the payroll cycle, which can be earlier than the creation date.
    Thank you

    Terry,
    In transaction SPRO got to Personnel Management>Employee Self Service>Service Specific Setting-->Change Default Start Date
    Business Add-In  HRXSS_PER_BEGDA. You can set the date in the DEFAULT_DATE method.
    Parameters of the method DEFAULT_DATE:
    MOLGA (Importing)
    PERNR (Importing)
    INFTY (Importing)
    SUBTY (Importing, optional)
    BEGDA (Changing)
    Regards
    Sarath

  • How to find universal date in java , not system date.

    Hello All,
    I am working on licensing the java web product using License4j jar. so here i want to get the universal date not system date. because system date can be easily changed by some one. suppose your product license validity date is 15 march 2010. you can change your system date and use this product long life. I have seen some java program from java.util api but not getting the correct answer.
    Edited by: mahrshi on Mar 17, 2010 11:56 PM

    mahrshi wrote:
    Some of our clients want server for which we are doing the licensing. so admin can change the server date and use this product.Give up in that case. It's not worth the effort. It's probably quite easy to remove the license checks, and you can't create something that is bullet proof. You have to decide when you got something that is good enough.
    Some applications checks that last startup time is before the current time and then stores the current time. The administrators of the server would in that case always have to change the time using an increasing value, and they wouldn't bother doing that.
    I would however be really surprised if they didn't pay for your software if they want to have a dedicated server, even if you didn't have any license checks. Companies usually don't want to use pirated software since you in that case can sue them.
    Kaj

  • Is it possible to update the bios on (compaq 686c3 - bios version, date: 4/18/2001).??

    I have a old pentium 3 processor with Intel 810 chipset (FW82810E) motherboard. This is a compaq motherboard. The builtin ps/2 ports for keyboard and mouse on the Motherboard have gone bad. I am trying to install windows xp using usb pen drive. But there is not an option for enabling the USB boot in the BIOS. When I switch on the machine the COMPAQ logo will appear. The BIOS Shown here is "compaq computer corporation setup utility" . BIOS Version\Date: Compaq 686C3\4\18\2001.
    Please help me for upgrading the BIOS for adding the USB boot option.

    Please provide the full model name and/or product number of  the HP/Compaq computer in question. Without this information there is little we can do to help you resolve your issue.
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

Maybe you are looking for