A
A
Adolf Milos2019-02-12 11:19:41
WPF
Adolf Milos, 2019-02-12 11:19:41

How long will it take to create a database in C# and WPF without SQL?

I'm more or less fluent in C#. I haven't learned WPF yet, but I plan to.
It is necessary to write a database in 4 months, it is forbidden to use SQL.
Tell me how much it will take approximately and can it be done in 1-2 months?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2019-02-12
@sergey-gornostaev

Firstly, it depends on the task: you can "write a database" in 5 minutes, but it can take years to write a multi-user relational DBMS. Secondly, it depends on the level of professionalism of the performer: what one needs minutes for, for another, it may be completely unbearable.

V
VoidVolker, 2019-02-12
@VoidVolker

A couple of minutes. For example:

public class MyDB
{
    public List<Message> Messages = new List<Message>();
    public List<User> Users = new List<User>();
}

public class Message
{
    public DateTime Time = new DateTime();
    public string Text;
    public ulong UserID;
    public Message(ulong userId, string text)
    {
        Text = text;
        UserID = userId;
    }
}

public class User
{
    private static ulong Cnt = 0;
    public ulong Id;
    public string Name;
    public User(string name)
    {
        Name = name;
        Id = ++Cnt;
    }
}

R
rPman, 2019-02-12
@rPman

Once upon a time, even before WFP, using ordinary Windows Forms and Dataset classes, I wrote a complex cache layer for a database, dozens of tables. It was about 'clicking lazily with the mouse', the entire database is in memory, saving with a regular serializer (in the same xml - two lines of code), hundreds of megabytes, worked at an acceptable speed.
ps It is said that without sql? take any ready-made nosql database;) for example redis

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question