Problems with integrating DB with MVC 5 - asp.net-mvc-5

i am building a ticketing system which customers can add new tickets to the system and employees can help them with there requests. I built the data base with an ADO file and my question is, is it possible to use the identity user and all of the database that comes with the mvc5 web application yet add additional tables with connections. i have been trying to do this for a while with no success.
!(http://postimg.org/image/v49eh3gql/) this is my database and i would like to extend application user and use my other attributes as well as my other tables and the roles table that comes with mvc all in one database.
any help would be appreciated
cheers :)

You could use the same database but I think its better to keep them apart. Add the properties for your user entity to IdentityModels.Cs and to the AccountViewModels.cs where appropriate. Since the views for these viewmodels are already created you have to add the attributes to the view yourself. Then in the package manager console Enable-Migrations Copy and paste the command that has the applicationDbConted in it. Add-Migration -Init then run Update-Database
Here is a post about how to access the logged in user.
is it possible to use the identity user and all of the database that comes with the mvc5 web application yet add additional tables with connections.
In other words, can you have an application with database first and model first?
Yes, but you have to be careful that you don't migrate the database first dbcontext.

Related

How To Pass Data From Database Apps To Theme App Extensions Without Metafield?

I am trying to figure out how to pass data between database apps to theme app extensions. In backend, Merchant can create, edit and delete data and it will update database. I also try using Metafield in Product, but when I want to assign metafield to multiple products, it take too much time to save metafield in every product.
How can I pass data from Database to Theme App Extension to update latest data to display on Online Store?
My theme app extension as below:
(https://i.stack.imgur.com/aQ4CD.png)
https://i.stack.imgur.com/UJ8De.png
You have two choices. One, the obvious one, is using Liquid, and rendering your custom data using Liquid, which implies, Metafields. You say that takes too much time, but the reality is, that is by far the best way.
Your second option is to use an App Proxy. It is slower, and prone to network problems obviously, but it does allow your extension to access data from the App's database.
Hope that helps.

Xamarin forms app no longer connected to easy tables

I have recently develop an Xamarin forms app which was linked to Microsoft Azure easy tables. This is a B2B app and will only be used by half a dozen users. It has been approved by the App Store. The syncing with the easy tables worked great.
My client is very familiar with Microsoft Access, and wished to be able to view the tables and add/edit data via this software. I successfully set up the express server and using ODBC linked the database to Access. With no problems on that end. I can see the data, delete rows and add/edit data.
But when I checked the app, the sync to the easy tables was hanging. And when I went into Azure. The easy tables are listed but they have no columns or data.
Are the easy tables now defunct because I have used ODBC to access them? Are they now different somehow?
How do I fix this? Is there a different connection I need to use? Do I need to set up a web api now? Do I need to use a different Nuget package/code? I am just not sure which direction I need to head.
The data is still there as I can see it in Microsoft Access.
Or do I just cut my losses and recreate the database and a new set of easy tables? There is not a lot of data to recreate and I have them in CSV files.
If this is the case, what is the best way of my client accessing and adding or editing the data from Azure? I realise the obvious one is developing a mobile app for him. I just wanted to check if there is any other way?
Thanks
Thank you very much for assisting me. Your advice, although did not directly solve the problem. It sent me down a rabbit hole of looking at the data in the actual SQL Database, and when I was there it asked me to login. I remembered I had changed the password to the server, when I was setting up the database in Microsoft Access as I could not not remember the original one (rookie mistake and I should know better). I changed the password back (as I found it in the connection string). Both now work. Thanks again.

CRUD operation in AX tables using C#

I am new in AX.
My boss gave me to task to access tables of AX 2012 from C#.
Following are the criteria:
Code should be generic. (user will give me table name, column name
and any condition if there, to execute insert, delete, update or
select queries).
Client and server may be or may not be in same
Client and server may be or may not be in same
domain Without any installation on client machine
I tried Business connector. But, we can't use business connector outside the domain and it requires installation on client machine
I tried web service. But, We need to add service reference for each web service group.
Is there any thing best suitable for my requirement? Or am I missing something while using above two ways?
Please help to resolve this issue. I am doing this since last month.
You can use AifGenericDocumentService. The wsdl is available by default at http://_AOS_:_8101_/DynamicsAx/Services/AifGDS?singleWsdl.
This is a generic web service, so if you don't know the schema for target tables you can also use MetadataService at http://_AOS_:_8101_/DynamicsAx/Services/MetadataService?singleWsdl
You can see an example at https://community.dynamics.com/ax/b/microsoftdynamicsaxintegration/archive/2012/05/06/microsoft-dynamics-ax-2012-application-integration-framework-custom-web-service-loosely-typed

How can I automate adding members to a Domino Server?

The company I work for wants to host documents on Lotus Quickr for external vendors to view. The way it currently works is as follows: A project manager needs to retrieve the non-employee's information (name, contact info, job title, etc.), which is sent to the Lotus manager. The Lotus manager then needs to add the non-employee as a new member to the Domino server. Then the Lotus manager needs to send the login credentials to the non-employee. Lastly, the project manager needs to give the non-employee access to the relevant Quickr place.
Because this process is very slow, my manager wants to automate a portion of the process. Our ideal solution would be to build a webpage where the non-employee could fill out their information. The project manager could then look over the the non-employee's information and choose to approve, deny, or send back the information. If the information is approved, the user will automatically be added to the Domino server. Then, the project manager would add them to the Quickr place as usual. This alternative method would eliminate a few steps, a lot of time, and the non-employee's login credentials would only be known to the non-employee.
The problem is that we're not sure how to tackle this. Would it be possible to build an XPage that could be sent out publicly that could handle this? Or is there a similar solution that we could use? I am very new to Domino and Lotus, but I would be comfortable with learning any necessary APIs once I know where to begin. For reference, we are using IBM Notes and Domino Designer 9 Social Edition.
This is indeed possible. Take a look at the User Group application on OpenNTF. It includes functionality for users to register themself so that they can login afterwards.
Good luck with your project.
in addition to #stwissel's and #Thierry's answers:
you of course can build an Xpages based application through which an anonymous user could ask to be granted access to some quickr place. You'll have to keep in mind that most visitors aren't registered users for you Domino server so you need to treat them as anonymous. This could mean that for example resources like company logos or stylesheets used in you "anonymous" application forms need to be marked as available for public access users.
Then you'll have to decide how the application forms are passed on to the project manager; you could send the data using mail, which however might open up an unwanted gateway for spammers. Preferably you would store the applicants' data in a small database from which you project managers then pull all open applications.
The rest is simple and has already been layed out by #stwissel und #Thierry: use quickr's ability to maintain its own set of place-based "local" directories (btw. one of the real cool features of this otherwise dead product).
Speaking about the product: as #stwissel already pointed out this product is no longer maintained by IBM; looking at the long record of known problems quickr had with various browser updates (esp. MSIE), not to speak of future Domino server support allow me to recommend looking for an entirely different solution
http://www-10.lotus.com/ldd/lqwiki.nsf/m_Home.xsp?documentId=F26B114598D21516852577FB005171F4#mobileViewer
QuickR on Domino can allow member not in directory if option is enabled by admin. So no need to ask to lotus manager, project manager can create local member

SharePoint and DataBase Design

I don't know about SharePoint that much, so hope that someone can give me some good explanations for me.
For SharePoint application, we don't need to consider SharePoint DB design? Everything is done through List and SharePoint will take care of the Database? Don't need to consider it at all unless we are connecting to the external Database?
For Parent Child relationship, I have to use lookup field?
If we are developing using Web parts, we need to deploy it using Features. So eventually, there can be so many features in the production? Is it recommended in this way?
1)
For SharePoint application, we don't need to consider SharePoint DB
design ? Everything is done through List and SharePoint will take care
of the Database ? Don't need to consider it at all unless we are
connecting to the external Database ?
You do need to consider the database... In term of administration. back ups, restore, size and so on.
however you never directly read or write to it. You don't need to pay attention to the schema because you won't ever be directly using it. If you want to update something in SharePoint you do it pragmatically with c# / vb.net using the SharePoint API's. You have 2 API's one that works on the server called the SharePoint object model and one that works on a remote machine called the client side object model.
From a users perspective, you are correct lists contain data in SharePoint and are somewhat smiler to DB tables in some ways.
2)
For Parent Child relationship, I have to use lookup field ?
Yip
3)
If we are developing using Web parts, we need to deploy it using
Features. So eventually, there can be so many features in the
production ? Is it recommended in this way?
This can happen if you create a new solution for every web part but you can bundle multiple web parts in the same solution in the same project in the same feature
Right click on your project --> add new item. select a web part. By default the web parts will all be part of the same feature but you can separate them out and have multiple features in the same solution if you want to

Resources