|
|
|
|
|
Thanks. I found that I must install "window sdk templates"
|
|
|
|
|
I found that I must install windows app desktop templates !!
|
|
|
|
|
I found that I must install windows app desktop templates !!
|
|
|
|
|
Hello friend! I am developing a Windows application (WinForms) to manage universities with c#, it is an application that is very complex because it is a Multi-user application, I want that for this application I can use a single database centralized by all users of this application, which will be managed by myself and my development team. Is this possible? What would be the best and least expensive solution, taking into account my capacity? Also in terms of cost, between a SQL SERVER EXPRESS database and a MySQL database, which one might be better for me? And which one is well suited to C#, using Crystal Report and Visual Studio as well? Your answers will help me a lot to make a decision and also develop an efficient solution.
I'm thinking about whether it's possible to host only my SQL SERVER EXPRESS, or MySQL database to which my Windows software or application designed in C# can connect remotely so that the various users of my device can access the remote database
Thank you for your help
modified 4hrs 15mins ago.
|
|
|
|
|
theo tuombe wrote: taking into account my capacity?
You didn't specify anything about capacity.
theo tuombe wrote: to manage universities with c#,
Manage what? Class schedules? Budgets? Lawn care?
theo tuombe wrote: What would be the best and least expensive solution
No idea. Even if you had all of the missing detail anyone that claimed that they could decide both of those would be, let us say, less well informed about the subject than one might hope.
theo tuombe wrote: And which one is well suited to C#
This is one of those factors where "best" has many meanings. If you plan on being a windows shop then staying with windows which means SQL Server is probably going to be the least amount of trouble.
Now if you or others that work on this have experience both in C# and other data persistence stores then there are other options. But then I suspect you would have already been able to evaluate that without asking here.
If you are VERY careful with how you write your code and your design then it is possible that you can switch databases relatively easily if you find you want a different solution. But unfortunately that again is probably dependent on experience.
|
|
|
|
|
Thank you very much Dear jschell for your answer to my question posed in the forum.
"taking into account my capacity?" I mean taking into account the cost,
"managing universities with c#" is really the input errors. To be clear with my question, I wanted to ask that I develop a WinForms application to manage universities with the programming language c#, the application I develop is an application that must manage the entire university including student management, budget management, course management etc.. It's an application that I want, after development, to be able to deploy to different universities, which are then the end users of my application. So I'm asking what solution I can use so that my application installed on different users' computers can use a single database! without error connection to database??
Thank you
modified 4hrs 15mins ago.
|
|
|
|
|
This is an extremely ambitious project for someone that doesn't know most database engines are already multi-user capable. The trick is writing your code correctly, so you don't introduce concurrency problems.
Why would you write a multi-user app like this as a desktop app and not as a web app? The one thing you forgot to mention in your description is security for these areas and data.
Do you even know what products universities already use for such management operations? Do you know that is your competition? Do you understand the market at all?
|
|
|
|
|
Thank you dear Dave Kreskowiak, To be clear with my question, I wanted to ask that I develop a WinForms application to manage universities with the programming language c#, the application I develop is an application that must manage the entire university including student management, budget management, course management etc.. It's an application that I want, after development, to be able to deploy to different universities, which are then the end users of my application. So I'm asking what solution I can use so that my application installed on different users' computers can use a single database! without error connection to database??
Thank you
modified 4hrs 15mins ago.
|
|
|
|
|
You already said that. Saying it again doesn't change the answers.
For such a massive project, you don't know what you're doing. Just the fact that you even mentioned SQL Server EXPRESS shows you are on a newb level with no idea the scale of the project you're describing.
Think of it this way. You're at a construction site, looking at a very small pile of bricks, trying to ask "how do I build a 100-story skyscraper?" You simply don't understand the scale of the project or the even the requirements of your own idea!
You want a database engine recommendation? Sure. How about SQL Server Enterprise or Oracle Database Enterprise.
|
|
|
|
|
Yes, thank you very much.
I'm not at all an expert in development software, and my experience is limited. In fact, I'm looking for a database engine solution that can work well with this project as I've described it. I was also looking for a database engine that can easily work with C# and Crystal Report because I'd like to use Crystal Report for Reports, and also a database engine that grants the possibility to be deployed either on a server or on a cloud, finally that the application install on different computers users use and access this database that is deployed on a remote server or on cloud.
Your recommendations, suggestions and advice will help me great and will also enable me to develop high-performance software.
Thank you
|
|
|
|
|
Yes, thank you very much.
I'm not at all an expert in development software, and my experience is limited. In fact, I'm looking for a database engine solution that can work well with this project as I've described it. I was also looking for a database engine that can easily work with C# and Crystal Report because I'd like to use Crystal Report for Reports, and also a database engine that grants the possibility to be deployed either on a server or on a cloud, finally that the application install on different computers users use and access this database that is deployed on a remote server or on cloud.
Your recommendations, suggestions and advice will help me great and will also enable me to develop high-performance software.
Thank you
|
|
|
|
|
theo tuombe wrote: I'm not at all an expert in development software, and my experience is limited
And that's why this project is WAY beyond your reach. You simply don't understand the scale of what a university needs to manage all of its operations and how that translates to requirements for your application.
theo tuombe wrote: 'm looking for a database engine solution that can work well with this project as I've described it
Your description is extremely vague at best, and the best suggestion you're going to get is any enterprise database engine.
theo tuombe wrote: I was also looking for a database engine that can easily work with C# and Crystal Report
Database engines do not care at all what language you use to write your application code.
|
|
|
|
|
Look for a project which you can actually succeed at. This is not such a project. Universities already use other products and they will not switch to yours, you have no hope of entering the market.
theo tuombe wrote: very complex because it is a Multi-user application
This statement reveals a serious lack of understanding of software applications.
theo tuombe wrote: managed by myself and my development team
No, that isn't happening. Too expensive for a university.
theo tuombe wrote: access the remote database
Offsite? No mission-critical application should rely on connectivity to resources which are remote.
|
|
|
|
|
The message above comes from the following code:
public abstract class Indicator : ExtendedIndicator
{
[global::Newtonsoft.Json.JsonIgnoreAttribute]
protected ITradingManager? TradingManager { get; }
}
class MyTradingManager
{
public ITradingManager _tradeManager;
public MyTradeManager(ITradingManager argTradingManager)
{
_tradeManager = argTradingManager;
}
}
internal class SampleIndicator : Indicator
{
MyTradeManager _tradingManager;
public SampleIndicator ()
{
_tradingManager = new(TradingManager ); <- Here the problem occurs !!!
}
}
Any Ideas why I get the error message in the title of this question ?
|
|
|
|
|
You didn't post the whole error message, did you? Please post the entire thing.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hello, please see below for the whole message:
Time Source Message
23.04.2024 09:18:14 ChartData Self referencing loop detected with type 'SampleIndi.SampleIndicator'. Path 'MyTradeManager._tradeManager.TradingVolumeInfo.Drawer.Data.Panels[0].Indicators.$values'.
|
|
|
|
|
Why do you even have that line in the constructor? It doesn't even make sense.
The "SampleIndicator()" constructor doesn't take any arguments, so are you trying to create a new instance of TradingManager for it to hold onto?
The code, as it is now, doesn't make sense at all.
|
|
|
|
|
With the following code:
public SampleIndicator ()
{
_tradeManager = new(TradingManager ); <- Here the problem occurs !!!
}
I want to "inject" TradingManager into my own object _tradeManager which already works as expectet.
The problem is the errors message I get from the logging window of the app that uses my plugin dll.
Unfortunaltely I do not have access to the source code of that app, only to my dll.
|
|
|
|
|
That's not how you do dependency injection.
Your Indicator class is useless as it has no way of setting its TradingManager property. Also, the JsonIgnoreAttribute is only useful if you're serializing the Indicator class to a file. I'm leaving the Indicator out of your code.
class MyTradingManager : ITradingManager
{
... Code to implement the ITradingManager interface ...
}
internal class SampleIndicator : ExtendedIndicator
{
private ITradingManager _tradingManager;
public SampleIndicator(ITradingManager tradingManager)
{
_tradingManager = tradingManager;
}
... Code that uses the ITradingManager implementation ...
}
Note, for this to work, you cannot make SampleIndicator dependent on MyTradingManager. It should take an instance of some implementation of ITradingManager instead. MyTradingManager is that implementation. Whatever code is creating instances of this stuff has to create an instance of MyTradingManager and pass that to the constructor of SampleIndicator:
{
...
ITradingManager manager = new MyTradingManager();
SampleIndicator indicator = new SampleIndicator(manager);
...
}
|
|
|
|
|
public class Student
{
int id = 1234;
String name = "gustav";
bool state = true;
}
It should print:
Student:
1234
gustav
true
|
|
|
|
|
The Student class should NOT CARE AT ALL about outputting anything to the console or other output. It should be just limited to managing the data for a single Student.
One problem I see if your Student class should expose its data in public properties, not fields.
Having said that, whatever UI code is using this class in some way would be responsible for the presentation. To get the properties in the format you specified in your question, the easiest way to return the string would be to override the Student class ToString method and build the formatted string to return to the caller:
public class Student
{
public int ID { get; set; } = 1234;
public string Name { get; set; } = "gustav";
public bool State { get; set; } = true;
.
.
.
public override string ToString()
{
string result = $"{ID}\r\n{Name}\r\n{State}";
return result;
}
}
|
|
|
|