Jump to content
LaunchBox Community Forums

Am I overthinking this generic database management tool?


Nielk1

Recommended Posts

I've been poking at my LB database with some general C# code for a little bit now and I realized it might be a good idea to pack up some of my code for it into general libraries.  Somehow, this spun rapidly out of control into this... thing...

Can I get any opinions on if it's worth pursuing the development of such a complex tool?  You need to use actual code to use it so it's pretty ugly.1.png2.png

Link to comment
Share on other sites

I'm with @DOS76 haha xD

I'm sure you know what it is/does, but chances are 99% of the rest of us are gonna be scratching our heads just based on those screenshots.

With that said though, as a general rule I would just say "Do you find it useful? Is it something that would help you in some way?" If the answer is yes, then chances are that it will help someone here at some point... even if it goes over most of our heads :D

  • Like 1
Link to comment
Share on other sites

It generally does everything, and nothing.  It's like having a lot of strings that connect to things like the library, or another data source, or another file, or another thing, and needing to put all the knots in yourself to bind it all together.

Link to comment
Share on other sites

6 minutes ago, Nielk1 said:

put all the knots in yourself to bind it all together

...and in the darkness bind them? :o

In all seriousness though, what exactly is the theoretical use scenario for this (in a basic sense)? What is it that you're intending to use it to do? Is there some sort of functionality that's provided here that would allow people to do something they couldn't normally? I'm assuming the answer is yes, but what's the practical application?

Link to comment
Share on other sites

Well, I did use this really basic script with it to set all my items with no Series set to be in the "~Not Set" series:


using System;

using System.Data;

using System.Linq;

using System.Collections.Generic;



namespace GameLibraryManager

{

    public class Query

    {

    	public DataTable Exec(Dictionary<string,LibraryDataSource> DataSources)

        {

            LaunchBoxDataSource lb = (LaunchBoxDataSource)DataSources["LaunchBox Library:0fa2a340-03c7-4c71-a932-3d44931310d5"]

            lb.Get("Game")

                .Where(dr => dr.GetField<string>("Series") == null || dr.GetField<string>("Series").length > 0)

                .ToList()

                .ForEach(dr => dr.SetField("Series","~Not Set");

            lb.Save();



            return null;

        }

    }

Theoretically you could do stuff like combine it with other data sets and apply changes or inserts.  I'm still trying to simply the interface of the code but I'm wondering if the whole thing is just too complex for anyone to use anyway.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...