Click here to Skip to main content
15,917,862 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 3:14
simpledeveloper18-Mar-20 3:14 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 3:55
mveRichard Deeming18-Mar-20 3:55 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 8:43
simpledeveloper18-Mar-20 8:43 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 8:48
mveRichard Deeming18-Mar-20 8:48 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper19-Mar-20 5:54
simpledeveloper19-Mar-20 5:54 
Questionc# forms (holy crap i'm not ready for this) Pin
Uranium-23513-Mar-20 23:51
Uranium-23513-Mar-20 23:51 
AnswerRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 1:07
mveRichard MacCutchan14-Mar-20 1:07 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 4:37
Uranium-23514-Mar-20 4:37 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Dave Kreskowiak14-Mar-20 4:58
mveDave Kreskowiak14-Mar-20 4:58 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 5:35
Uranium-23514-Mar-20 5:35 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Dave Kreskowiak14-Mar-20 6:30
mveDave Kreskowiak14-Mar-20 6:30 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 6:11
mveRichard MacCutchan14-Mar-20 6:11 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 6:51
Uranium-23514-Mar-20 6:51 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 7:02
mveRichard MacCutchan14-Mar-20 7:02 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 20:42
Uranium-23514-Mar-20 20:42 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 20:25
Uranium-23514-Mar-20 20:25 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 22:10
mveRichard MacCutchan14-Mar-20 22:10 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23515-Mar-20 4:41
Uranium-23515-Mar-20 4:41 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan15-Mar-20 4:44
mveRichard MacCutchan15-Mar-20 4:44 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23515-Mar-20 7:40
Uranium-23515-Mar-20 7:40 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan15-Mar-20 8:00
mveRichard MacCutchan15-Mar-20 8:00 
AnswerRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-2359-Apr-20 23:01
Uranium-2359-Apr-20 23:01 
ok, been working on it, i'd figure i'd just add to this instead of making a new thread. I've been messing with SQLite.

What I want is to make a function to run the query, get row data and return it. Of course, rows are of mixed types, Using GetDataTypeName(), but storing these into an array is impossible because arrays can only be one type

is there a way to store the row data into an array? I've tried the reader row data itself, but i'm not sure i'm going about it the right way

this is the core section i'm trying. I've successfully done the query and got the data inside the function, just returning it is the problem

C#
sqlite_cmd = sql_conn.CreateCommand();
sqlite_cmd.CommandText = sql_query;
sqlite_datareader = sqlite_cmd.ExecuteReader();

SQLLiteReader Row[];


//store reader data in an array?
    for(int i = 0; sqlite_datareader.Read(); i++)
    {
            Row[i] = sqlite_datareader;
    }


and return the row. I tried passing the reader up by reference but that was unsuccessful

My error:
Bad array declarator: To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keyword before the field type.
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23510-Apr-20 10:12
Uranium-23510-Apr-20 10:12 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23511-Apr-20 16:33
Uranium-23511-Apr-20 16:33 
QuestionEntity Framework Code First is generating an extra column - need some help please Pin
simpledeveloper9-Mar-20 9:44
simpledeveloper9-Mar-20 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.