|
srsly?
There are enough examples on this website.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Has anyone programmed one of these? My company is using these types of transfers for distributed control, their choice of data format is XML. I need some examples so I can see if I can incorporate it into the HMI software we are going to start to use. Indusoft, formerly Wonderware.
j
|
|
|
|
|
I’ve written many of them in the last week. I use a .Net Core controller, with a IActionResult that simply returns a status code such as 201 for record added.
This is a Microsoft server example in C Sharp, pretty close to what I have been writing. But I’m using JSON instead. This should return a HTTP status code indicating success, add, etc. The part to look at is the return value and how to call the service. You can fancy with routing and just call a url route and pass the data to the below service url.
https://domain.com/api/work/create
You write the server side in say NodeJS as well, as long it can talk to a database.
Your question is vague and I’m nit sure what side you want to look at.
HttpPost]
public IActionResult Create(TodoItem item)
{
_context.TodoItems.Add(item);
_context.SaveChanges();
return CreatedAtRoute("GetTodo", new { id = item.Id }, item);
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
how to use rest api in vb.net
|
|
|
|
|
By first Googling for "rest api", and studying dome of the tutorials and samples. If you are talking about a specific API, then the accompanying documentation will explain how.
|
|
|
|
|
Since you give no details at all about your situation, the best you're going to get is typing your exact "problem description" into Google:
Google "how to use rest api in vb.net"[^]
Start reading the results returned by that search.
|
|
|
|
|
|
Have ASPNet webapp with ListSetter and button. I need to display various content based on what user selects from list.
CODE IT!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
cloudenv wrote: CODE IT!!!!!!!!!!!!!!!!!!!!!!!! You are the one who needs it, not me.
Look up the example on MSDN on the "switch" statement. It does what you want.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Ummm.... no. YOU go write the code.
You're not going to do my job, so I'm not going to do yours.
|
|
|
|
|
Hi everyone.
How can I add and event to a treenode in C#?
|
|
|
|
|
|
Hi Friends,
I am trying to create a add-in for version number auto update, i don't know how to get assemblyinfo (physical file) which are all associate with my current solution file.
Kindly help me to solve this.
thanks
Yasin
|
|
|
|
|
From your solution, you can get a list of all of the Projects associated with it. Then, you would iterate through the ProjectItems looking for AssemblyInfo.cs. This is all done through the VS SDK.
This space for rent
|
|
|
|
|
Hi Pete O'Hanion,
I Thank you for your reply and can i have any example ?
Thanks
Yasin
|
|
|
|
|
All the keywords you need to find examples are in my answer. It's up to you to do the work - we aren't going to write your code for you.
This space for rent
|
|
|
|
|
Version number "auto update" is handled with an attribute:
[assembly: AssemblyVersion( "1.0.*" )]
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Thank you Gerry Schmitz,
i can able to update the version in assemblyinfo.cs but my issue is i don't know how to get all assemblyinfo file path(ex: in my solution i have 5 projects i need to update all assemblyinfo respectively) from solution file.
Regards
Mohamed Yasin
|
|
|
|
|
Hi,
I need help in "how to do it"
I have an existing .NET application which use Sql Entity Framework with SQLite databse.
This application is deployed and used by client and there is a production database .
Now the client need to migrate this database to SQLServer.
So what I need is to migrate the SQLite database to SqlServer and make the necessary in code using Entity Framework always.
My question please is what is the best practice to accomplish this and steps to follow.
Thanks for help
|
|
|
|
|
I think defining the "best practice" is a little arbitrary, there are very few different ways to do the migration. Google[^] seems to show a simple method.
As for EF, surely you simply give it a new connection string (I despise EF so never use it).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks for reply,
But what I asked for is using code will be more better than using standard tools ? and if yes how achieve this ?
Thank you
|
|
|
|
|
If you have to ask, then it is better to use standard tools.
Recreate the database-tables in SQL Server and see if you can export the data as CSV or similar.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I would use the standard tool UNLESS it is something that needed repeating regularly. For a one off migration do it manually.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
can anyone point me to best open source xamarin apps for learning?
cheers
=====================================================
The grass is always greener on the other side of the fence
|
|
|
|
|
For learning what? Xamarin Forms? Xamarin Android? Xamarin iOS?
This space for rent
|
|
|
|