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);
}
|