C# Creating Purchase system for my application [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm building a C# application and would like to sell it for an audience. I would like to upload a database file into a website I own and give serial numbers to be verified first with this database file, once the database store the given serial and the first registered PC then it blocks this serial for other users.
Can anybody guide me on how to make such step during installation time? how I can connect to a remote database on a website to read and write?
Thank you for your time, really appreciate it.

If i understand you, this is what your looking for.
Using that you should be able to check a serial against the database.
One way to block the serials for repeated use is to couple a boolean "used" with a serial on each row. Then you can check both if the serial is found in the database, and if the boolean value is false.
Make sure to keep the input safe to prevent SQL injection.

Related

How can I save data inside the program self? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last month.
Improve this question
My program is a desktop program made by .net7.
The program is running offline and the end-user is a factory, not all the factories have a network or are willing to pay for a network. We can't change this.
The program is used to verify whether the card has been used. The program reads the id (the id is something like Media Access Control Address that is unique) of the card, searches from the database and returns a result.
The data should not be stored in the card self for most people can clone a new card easily (but they can't clone the id).
As we know, we can store the data by database of file by encryption. However, someone can clear all the records by replacing a blank new database/setting or delete it directly.
The only idea for me is to save the data inside the program but not outside it.
Whereas, how can I achieve this? Or is there a better solution? Thank you.
In NTFS (Windows), you can use the alternate stream of the file. Although, technically, the user will still be able to delete it.
See this answer for details on how to do that with .

How to make a plug and play WPF app create a SQL database? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm currently learning WPF with the goal of making a simple app for a friend. This app will make use of a database and the PC were it will run won't be connected to the internet.
I know how to make a simple database using the server management studio, and how to connect to it in my code. But so far, all tutorials/docs I've seen only talk about making use of a database in my pc, but in the case when I finish said app, how I go about setting all of this up in his (or any other)?
The end goal is for the app to be 'plug and play' and that the database files can be easily backed up.
I don't expected a step by step process! Just some direction for where to look for would be more than enough... thank you.
Use an SQLite DB, can be part of the App

Sharing an application to another computer [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
When you send an application to someone, using another computer, besides the application itself, do I have to send the Resources File too? And if I am using a DataBase do I have to send the Database.mdf file too? And what else would you have to send to make sure your application works on another computers?
Sorry if this question is a repeated one, but most of the others just ask for a single item, either the Resources or something else. But I would like to know about everything you have to send.
Thanks a lot !
it depends on your approach. i think you have a software with database and... that you want to sell and make it owrk on other users device. you can make you app make a new database on first start. you can include database files if its local and add to user app directory and... it all depends on you packaging method and tool.
or maybe you want let someone continue the project. so you can give other developer a back up .bak format or export database files from sql server management studio and other developer can attach them to the other machine project

Right place to store the int ID value ,if an application crashes or restarts in c# windows application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am reading the last updated integer application id value from settings file when application crashes or restarts happens in c# windows application.
But i would like to know whether this approch is good or not ?
Also please let me know is there any other option for storing the variables during application crash or restart.
This entirely depends on how much trouble you'll get into when you re-use an ID and how easily you can recover from that. And keep in mind that it is not just limited to program crashes, you'll have the same problem when somebody trips over the power cord or a machine's hard drive fails and needs to be replaced. Which significantly cuts down on the number of "good" places to store this info. It is usually a lot of trouble, always consider providing the user with a way to recover. A settings file is not easy to find, you need to help.
The standard guidance is to store it in the same place as the data that depends on the ID value. So you'll lose them at the same time. And get them backed up at the same time :) Always favor a database table's identity column for example.
And very strongly consider using a Guid so you never care about the previous value.

Display live scores [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am planning to design a website which displays the live scores of matches(NBA, AFL) etc. I would like to get scores, store them in my database and then display in my website. How can I accomplish this. Thanks in advance.
Thanks,
Sandeep.
Well first you need to decide how you're going to get the data. Is there a webservice that you can query? A document/webpage you can parse to get the information? Are you going to write a speech recognition device to interpret results from the radio or will you type it in by hand.
Then you need to get your database up and running, and whatever is reading your data (maybe it could be a windows service) can write the data into the database. Something like SQLExpress is quite good to try out.
Once you've got that you'll need to decide on your technology, ASP.NET or Silverlight are some good examples. You'll want to create some controls and then databind to the results from your database, which you could obtain using SQL expressions.

Categories