How do I switch from external datasource to LS datasource and keep the same data entities? Need to edit design.

Hi all,
I have a LightSwitch desk top application that I wrote back in 2011 right after LightSwitch was available using VS2010 and the necessary extensions.  I am now in the process of trying to upgrade that application using Visual Studio 2013 Version 12.0.30501.00
Update 2.  The first thing that I do to make my life easier so that I am not re-inventing the wheel is connect to a copy of the original database.  This makes things a bit easier in that I now don't have to re-create my data entities.  However it
appears that even though this is a copy I cannot edit the design. Are there any flags or properties that I can flip to make the entities editable?
I need to change the database design.
Thanks, -ja

I think you answered your question here. You can edit any part of the database with your SQL skills once you are familiar with Microsoft SQL Server. AND Lightswitch is a Rapid Application Developer tool specially tailored to people who want a simple
way to visually create some basic databases. That's why I first asked what you wanted to change in your original Database to focus your question on the tool Yann Duram books says you can use to make further edits if you have access to the server. As Dave says
you can reverse engineer it all I mean its just text files and folders but its a lot of work as well and you have to reprogram each part of the file structure including the .lsml's which hold the basic Entity framework it looks like an XML indented format
like the following. I only mess with it when I know what to add were because it is a native code to lightswitch.
<?xml version="1.0" encoding="utf-8"?>
<ModelFragment xmlns="http://schemas.microsoft.com/LightSwitch/2010/xaml/model">
<ServiceApplication
Name="LightSwitchServiceApplication"
Version="1.0.0.0">
<ServiceApplication.Attributes>
<ModuleNamespace
Namespace="LightSwitchApplication" />
</ServiceApplication.Attributes>
</ServiceApplication>
<DataService
DataProvider="EntityFrameworkDataProvider"
EntityContainer="LightSwitchCommonModule:ApplicationData"
Name="ApplicationDataMapping">
<EntitySetMapping
EntitySet="LabPart" />
<EntitySetMapping
EntitySet="LabRBCDetail" />
<EntitySetMapping
EntitySet="LabOrderDetailsSet">
<EntitySetMapping.Attributes>
<SsdlForeignKeyProperty
Name="LabOrderDetails_LabNames"
Nullable="False"
Type="int" />
<SsdlForeignKeyProperty
Name="LabOrderDetails_PPIsheet"
Nullable="False"
Type="int" />
<SsdlForeignKeyProperty
Name="LabOrderDetails_DiagnosisItem"
Nullable="False"

Similar Messages

  • How can i burn a slideshow to a dvd disc and keep the same full screen hi-def quality to it? I exported it to idvd but much of the quality was lost.

    how can i burn a slideshow to a dvd disc and keep the same full screen hi-def quality to it? I exported it to idvd but much of the quality was lost.

    Ask in the iDVD forum on what's the best way out of iPhoto and into iDVD.  The resident expert there, Bengt Wärleby, can give you the best option.
    OT

  • How can I burn a Motion Video into a dvd and keep the same quality?

    I tried exporting my Motion video into Quick time but the quality is horrible. The images and text are blurry.
    How can I export this video into a DVD or CD and keeping the best quality of the video?
    Would Appreciate someones help.
    Thank you

    Try this - export the Motion file as an animation and import into FCP - then apply color correction, if necessary. Then push it through Compressor and onto DVD.....
    Hope that helps.

  • I just received a new ipad and presently have an ipad 1. I was wondering how i can transfer everything from my old one to my new one and keep the same accounts and passwords or is it even possible or do you have to repurchase all of your apps

    I have an ipad 1 and just receive the new one.  I was wondering how i can transfer the apps and things that i have on my old one to my new one and keep the same account names and passwords.  Or do I have to purchase averything over again.

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
     Cheers, Tom

  • How can I install a recent version of Photoshop Elements and keep the albums set up in the older ver

    How can I install a recent version of Photoshop Elements and keep the albums set up in the older version?

    http://tv.adobe.com/watch/learn-photoshop-elements-11/converting-a-catalog-from-previous-v ersions/

  • Rename externally created dimension (FCM) and keep the same ID

    Hi,
    Urgent, need your help !
    I'm facing an issue regarding renaming externally managed dimensions (from FCM).
    Currently if i rename a dimension using third part tool, then FCM create a new entry into my "data/state/autogen_dimension.xml" file
    with a new ID and the previous one is kept. So i'm having data consistency issue.
    How can i update  dimensions and dimension values (externally managed) keeping previous ID please ?

    FCM and Externally Managed Dimensions are two separate features. 
    If your dimension is being created by FCM and you want to change the name of the dimension itself while keeping the same ID, I think you'd need to go into ./data/state/fcm.dvals.xml[.gz] and ./data/state/fcm.conflicts.xml[.gz] and rename there, as well as change it in your FCM data feed (where you pass in the dimension schema).  If you are actually talking about EMTs, I'm not sure - possibly the same approach.  Certainly just renaming them in the data feed/schema would assign a new ID as the logic would naturally assume this was a new dimension (usually there is a separate display label attribute to support business users changing the label while the name is used as a system ID).
    HTH
    Michael

  • How to move OU from one suffix to other suffix and waht kind of precautions we need to take?

    Hi All
    Hope all are doing well.I love to read this blog regularly and i also posted couple questions here and i got very brilliant answers and hoping same now.
    Question is: We are planning to change our DIT structure like moving OU (contains 80k entries including static groups and managed roles,filtered assigned to users) from one sub-suffix to root  suffix as below.
    Currently we have ou=ldap,ou=directory,dc=example,dc=com
    Where ou=ldap has 80k entries and it included managed roles,filtered roles and static groups assigned.
    Planning to change DIT as below.
    ou=ldap,dc=example,dc=com
    1> How to implement this please give some technical knowledge of doing this
    2>What precualtions we need to take?
    3> Do we have any outage
    We have 12 servers installed ldap instance all MMR and its ODSEE 11.1.1.7.0
    Let me know if you need more information

    Hello,
    At first glance, the easiest way would be to use LDAP mod dn operation. However, I would encourage you to review potential issues first:
    Before performing a modify DN operation, ensure that the operation would not break client authentication: how do you application depend on the user DNs ? Do they directly bind as <uid=some user>, ou=ldap,ou=directory, dc=example,dc=com or do they discover the actual user dn by doing a lookup/search first as many portal apps do ? Moving entries may require changes to the client application side. Is it something acceptable for you or should that move be transparent for the client apps ?
    Similarly, If you move an entry that refers to a SSL client certificate, client authentication will break after moving an entry. Are you using client certificates ?
    Before performing a modify DN operation, ensure that the operation would not break your application. The rename or move of an entry can change the following characteristics of the entry: The scope of a filtered role of an entry, The nested role of an entry, where the nested role contains a filtered role, The dynamic group membership of an entry. Furthermore, the entryid attribute of an entry can change when an entry is moved so this may impact your applications if they use the entryid operational attribute.
    Static groups that contain reference to the old user dn may be updated automatically if you Enable and configure the referential integrity plug-in on all master replicas in the topology. This action ensures that the server maintains referential integrity for groups and roles.
    LDAP mod dn and associated constraints are described at Directory Server Entries - 11g Release 1 (11.1.1.7.0)
    -Sylvain
    When closing a thread as answered remember to mark the correct and helpful posts to make it easier for others to find them

  • How can i write and read the same data

    hi,
             i have attached my program to this mail. i have some problems in this program.
    problems:
    1. I want to select the threshold for the rms,varience and s.d.
    But what i used is not doing that. i want to fix the upper threshold value and lower threshold value.
     when ever the input crosses upper threshold value i want the output and it will remains uptill the value above the lower threshold value.
    Once it come down the lower threshold value the output should be stopped.
    2. I want to write this in to a  file and i want to read this file. is this possible or not. 
                please try to help me i am very new with lab view6i
           REGARDS
    CHAMARTHY KOMAL DILEEP.
       [email protected]
    Attachments:
    dileep.vi ‏93 KB

    The easiest way to perform a certain action (such as file I/O) based on a certain condition (such as whether a value has passed a certain threshold) is to use a comparison VI in combination with a case structure. Then you can specify that if your rms, standard deviation and variance are above a threshold then perform a certain action.
    Also consider using shift registers to keep track of data from the last loop. If I understand you correctly, you want to start logging data when an upper threshold has been passed. Then you want to continue logging data until a lower threshold is passed. I have attached a non-functional but explanatory VI that will help explain how to implement logic to that effect. It also demonstrates that you can indeed write and read from the same file in a loop. The best way to do this is to open the file before the loop, do all the necessary writing and reading in the loop, and then close the file after the loop.
    Hope this helps!
    Jarrod S.
    National Instruments
    Attachments:
    dileep_example.vi ‏61 KB

  • Switching phones--why can't I keep the same data plan?

    I am on a family plan with three phones on it, two of which are Android phones.  The third line, currently suspended by me, is on an LG Env3.  Before the data plans changed, I added the unlimited data to the phone for $29.99.  I reactivated the line to verify the data plan shows on it, and then suspended the phone again. 
    I want to use this extra line as a house phone, and I have an HTC Eris I'd like to use.  Since it's a smart phone, I know I have to have a data package, which is already attached to the line.  When I got on-line and tried to reactivate the line, changing it to the Eris, a window popped up telling me I have to switch to one of the new data plans. 
    Anyone have any idea why it is doing this?  I changed from the Eris to a Thunderbolt on one of the other lines two weeks ago, and had no problem keeping the unlimited $29.99 plan. 
    If I call customer service and do it with a rep, will I be able to keep the $29.99 data plan? 
    Thanks for sharing your knowledge.
    (Originally posted in wrong forum)

    LG Env3 is not a smartphone. The feature phone unlimited data plan is coded differently than the smartphone unlimited data plan. If you change that line to a smartphone (like a Droid Eris) you have to select from the currently available data plan options.
    As long as you keep a feature phone on that line you can keep the grandfathered feature phone unlimited data plan.

  • Can I move Array from one Xserve RAID to another and keep the data

    I'd like to move a set of disk with an existing Array from one Xserve RAID to another. Can I simply shutdown both Xserve RAIDs and move the disk over, assuming I put the disk back in the same order?

    Yes, you should be able to do this.
    BE SURE YOU HAVE A BACKUP FIRST.

  • HT2589 How can I Change my apple id (email adress) and keep the same account? Or do I have to create a whole new account?

    My email address was hacked and I can no longer use it. How can I change the email address with our loosing everything on my iTunes account?

    Sign out of your Apple ID on all your services & devices, especially iCloud on your iPhone.
    Go to id.apple.com.
    Log in with your Apple ID & password.
    Then, edit your primary email address to the new email account.
    Once you do so, a verification email will be sent to the new email address.
    Go to your email account and verify the new primary email address.
    Apple ID: Changing your Apple ID

  • How do I switch from Mac to Windows quickly, without just restarting the computer?

    I know i can go to bootcamp on the Windows side and click "restart in Mac OS" but is there a similar way to switch quickly from the Mac side over to the Windows side?

    Apple has BootPicker http://www.apple.com/education/resources/bootpicker/ for this.
    Stefan

  • Switching from iPhone to Samsung Galaxy S4 and Fixing the Problem

    Hopefully your search engine will send you to this message before all the other ones. Here is step by step what I did:
    1. Went to Verizon Wireless to get new phone
    2. Turned off iMessage on the old iPhone
    3. Disassociated my old iPhone from my account online at this link: https://supportprofile.apple.com/MySupportProfile.do
    4. Removed my iPhone from the iTunes Store. (Go to iTunes-->iTunes store--->Account (left hand side)--->Manage Devices--->Remove the phone)
    5. Called Apple (1-800-694-7466) and had them remove/disassociate my phone number from the old iPhone. They told me it would take up to 24 hours.
    6. ON THE NEW PHONE, texted "Stop" to 48369 and received a message that I was unsubscribed and would no longer receive messages.
    7. Texted my girlfriend to send me a test message and VOILA, it worked within minutes of talking with Apple.
    I know its alot but I hope this helps everyone. The texting to 48369 from the Galaxy 4S idea was thanks to devondeal

    Unfortunately I have turned off iMessage from my iPhone and have called in to deregister. It's been almost 24 hours and it's still not working correctly. The HUGE issue is that I've basically been told "it will eventually start working". Well, I didnt pay you have the money and tell you I'd send the rest when it started working. You are a huge company dealing with another huge company. I PAID THE MONEY AND YOU TOOK IT BUT THE PHONE IS NOT WORKING THE WAY IT IS SUPPOSED TO. If you cant make a device work, you should not be selling them with the assumption that you can use it when you pay right then. There are so many forums and threads about this problem but yet nobody mentioned it at the verizon store. I will not be a customer by this evening is this doesn't resolve. This is **** poor business and terrible communication about switching devices. The largest network is doing a great job of pushing me back to AT&T. Rediculous!!

  • How can i empty the table in sub vi and get the same data main vi

    I using a sub vi in my program for many places,but when I run the program for second time i stil have the old information
    someone can help me to resolve this probleme whith a sample
    thank you.
    Attachments:
    Main_Pass.llb ‏30 KB

    Well, obviously you are reading the current content of the table with a property node, then append the new data, making the table in the subVI grow each time it is called. I made a quick modification (see attached).
    btw, I don't see the logic in your overall design. What is e.g. the purpose of the OK button in the subVI?
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Main_Pass.llb ‏28 KB

  • How do I import an index into Indesign for epub and keep the links live?

    What is the best way to import a subject index (the indexer uses skyindex, and has an option to output index links to indesign para numbers), but he currently provides a word file for import into Indesign 5.5 with dead page numbers. We need to retain that for print publishing, but change the index numbers for epub, to links in both directions. Whats the best way to tackle this? I hope someone out there has done this!

    Page numbers do not exist in epub.
    Have a read through this:
    http://www.pigsgourdsandwikis.com/2010/07/creating-index-for-epub-with-indesign.html
    Bob

Maybe you are looking for

  • 10.6.7 and 10.6.8 crash my Mini 2010

    Mini works great with 10.6.6. Have upgraded my MBP without incident. Has same software config as the Mini. 10.6.7 finder becomes unresponsive, machine will not wake from sleep. Restored from time capsule back to 10.6.6. Tried 10.6.8 yesterday. One by

  • Ignoring Error Records

    Hi all, I have a scenario like this If i have 100 records in the file then in the idoc there will be 100 data segments to be created. if say 5 records were error then i need to create an idoc with 95 data segments. and ignore the 5 error  records. ho

  • Scheduling - Min. queue time & work center / reduction

    Hello, I have a small issue with scheduling of production order. I have maintained in a work center with Std. queue time = 15 days and Min. queue time = 7 days. Means less then 7 days it should be not reduced and by enough time it should be calculate

  • RRI Jump Target Issue, IMP

    How do I jump from one query to another with a set of values. I want a query to run for a set of all customers for a specific customer group from 0cust_sales. I tried both options using InfoObject and Variable and different options in selection type(

  • Authorisations maintained in custom tables

    Hello Everbody, I just have a small question regarding AC. For some workflows, authorisations are maintained in custom tables in our system. E.g. a workflow process for asset approval where a certain user can only approve the asset if it is below a c