Is there a way to ONLY add tables to an edmx file? - linq

I wanted to ask if there is a way to ONLY add new tables to the edmx file without updating (refreshing) or deleting the existing table?

Sure, If you right click on your EDMX model diagram. You can select update model from database. A dialogue box will pup up. The dialogue box has tabs up at the top one of them is add. From there expand the table menu and select the tables you want to add.
Update 11/08/2014
In this example Deleted table no longer exists in the Database. Open up your EDMX file. Right click in the white space around your tables and select Update Model from Database.
A dialogue box will pop up. Under the add tab expand tables and select only the tables you want to add. and click finish.
And you're done. Both tables still exist in your EDMX file.

Related

Updating a Button in an MS Access 2013 Form

I have a form in MS Access 2013 that is associated with two tables. The form populates with various fields from each table. I also have several buttons to Add a Record, Find a Record (from one of the tables), Save, and Close Form. I want to add a button that allows me to find a record from the other table. I was successfull creating the button, but the button is looking at the wrong table. I want the button to look at the other table but I can't find a way to switch the table the button is looking at. I don't understand Macros very well but this appears to be a very easy problem. How can I make the button look at the right table?

Finding source of data in SSAS tabular

I have the following table in SSAS tabular using visual studio.
I would like to find out what source table Customer name uses as it seems to be using a wrong table, but I can't figure out how to find out which table it uses from.
picture of property window
View the properties window. To display this, highlight the table in SSDT then go to View > Properties Window or press F4. After this, find the Source Data field and click the ellipsis next to it. This will open a window that will display either the source table/view, stored procedure EXEC statement, or SQL command that the table is derived from.

Silverlight Dropdown-box alphabetically ordered

I've been busy with this for two days, and I can't get any further on it.
I have a Dropdown-box/Combobox (not sure what it's called) in Microsoft Silverlight, and my editor is Microsoft Visual Studio 2010. The Dropdown-box has to be alphabetically ordered, but I do not know where to find the source. This is what I do know:
If I select the Dropdown box in the Designer, I can see that the
Data Binding is called "par_Customer(item)".
On the left side of the Designer is a list of tables, including the
par_Customer table.
Almost all tables have the text "Edit Query" next to them, and by
clicking on that the program opens a query editor with the right
query in it.
The table I need, "par_Customer", does not have the text "Edit
Query" on it.
When I right-click on the table, I get the options to Delete or Edit
the table.
When I click Edit, I see a list of all the attributes (columns) of
that table and its relationships, yet no query or anything
The Dropdown box is not filled by code.
What I would like to know: where do I find the source of this dropdown box? Where is it "filled"?
I would really appreciate any help or input on this problem, since I have no idea where to look any information will be of value.

Arc relationship (XOR) in Oracle SQL Sata Modeler?

I need to model database in Oracle SQL Developer Data Modeler.
I have to create ARC relationship (XOR), but I don't know how.
I have found checkbox "In Arc" in Foreign Keys properties, but it is disable (grey). I don't see any other options, which pertain to Arc.
You need to select the relationship lines in the diagram, and then hit the 'New Arc' button on the main toolbar.
From the help:
"To create an arc, do so after creating all the relationships to be included. Select the entity box, select all relationship lines to be included (hold Shift and click each line), and click the New Arc button in the toolbar."

front-end user interface to view record edit history

I have a web application that inserts/updates/deletes records from a database. Each time a transaction is made to a table, the change is recorded with the type of modification and the previous values from a trigger. What is a good web user interface layout to view such transactions to the users? Currently we just dump the whole history table to the user in a html table row and column format. I'm looking for some interface hints to present these edit history better.
Thanks for your input.
You can use a grid representation of the database table, plain html or produced by a js framework, plenty of options out there.
For the newly inserted records with no updates, just show the record with the insertion datetime.
For records that have been updated you can add a link/button at the end of the row with a title like "history" or "previous versions" or somethink like that and when a user clicks on it, then you can open a subgrid under this record or a pop up with a new grid (depends how you will implement your grid on the first place) which will show this record's history only.
The deleted records, you can add them (at the bottom of the table maybe) but grayed out or striked out. Again you can add the history option if you want it even for deleted records.
EDIT:
You could also add some filtering functionality above your grid for the user to select/see only the inserted/updated/deleted records and of course sorting functionality on the grid columns

Resources