Several how-to questions


Author
Message
Daniel Essin
Daniel Essin
StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)StrataFrame User (339 reputation)
Group: Forum Members
Posts: 235, Visits: 309
1 - If I have existing stored procs in a database, how can I make the deployment toolkit aware of them? They don't show up during database import.



2 - If I have existing views in a database, how can I make the deployment toolkit aware of them? They don't show up during database import.



3 - I have a bo with a property called PrimaryKeyField. The value is "A class derived from MicroFour.StrataFrame.Business.BusinessLayer must override the property 'PrimaryKeyField'". There is a property in the BO called PrimaryKeyFields. What's going on here?



4 - I have a bo to retrieve a user row after login. If I log in with an incorrect password, no application exception is thrown but if I inspect the bo, it throws an internal exception on each of the fields. I'm confused. The code is:



private static void ShowLoginAndInitMainForm(ShowLoginAndInitFormEventArgs e)

{

FormLogin fl = new FormLogin();

if (fl.ShowDialog() == DialogResult.OK)

{

string conn;

Hashtable cfg = (Hashtable)ConfigurationManager.GetSection("database");

conn = "server=" + cfg["server"] + ";initial catalog=" + cfg["initialCatalog"] + ";uid=" + fl.UserName + ";pwd=" + fl.Password + ";";

DataLayer.DataSources.Add(new SqlDataSourceItem("", conn));

ConnectionManager.SetConnections();

BoUsers user = new BoUsers();

user.GetUserInfo(fl.UserName);

e.LoginSuccessful = true;

}

}





   public void GetUserInfo(string UserCode)

{

SqlCommand cmd = new SqlCommand();

cmd.CommandText = "SELECT * FROM SvcUsers WHERE LogonName = '" + UserCode + "'";

FillDataTable(cmd);

}





GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Daniel Essin - 19 Years Ago
StrataFrame Team - 19 Years Ago
Daniel Essin - 19 Years Ago
StrataFrame Team - 19 Years Ago
Daniel Essin - 19 Years Ago
                         My pleasure on the timeout issue... keep me updated on your other...
StrataFrame Team - 19 Years Ago
                             OK - I've done the following

- Compiled the source.
-...
Daniel Essin - 19 Years Ago
                                 Where are you getting that error message? Within the property sheet at...
StrataFrame Team - 19 Years Ago
                                     Thanks. That makes sense.
Daniel Essin - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search