refactoring names in the DataAccess data model
This commit is contained in:
parent
e540aed51c
commit
ffebb9141c
6 changed files with 26 additions and 26 deletions
|
|
@ -9,12 +9,12 @@
|
||||||
<%= Html.LabelFor(model => model.Port) %>:
|
<%= Html.LabelFor(model => model.Port) %>:
|
||||||
<%= Html.TextBox( "Port" ) %>
|
<%= Html.TextBox( "Port" ) %>
|
||||||
<%= Html.ValidationMessage("Port", "*") %><br/>
|
<%= Html.ValidationMessage("Port", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Dbname) %>:
|
<%= Html.LabelFor(model => model.DbName) %>:
|
||||||
<%= Html.TextBox( "Dbname" ) %>
|
<%= Html.TextBox( "DbName" ) %>
|
||||||
<%= Html.ValidationMessage("Dbname", "*") %><br/>
|
<%= Html.ValidationMessage("DbName", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Dbuser) %>:
|
<%= Html.LabelFor(model => model.DbUser) %>:
|
||||||
<%= Html.TextBox( "Dbuser" ) %>
|
<%= Html.TextBox( "DbUser" ) %>
|
||||||
<%= Html.ValidationMessage("Dbuser", "*") %><br/>
|
<%= Html.ValidationMessage("DbUser", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Password) %>:
|
<%= Html.LabelFor(model => model.Password) %>:
|
||||||
<%= Html.Password( "Password" ) %>
|
<%= Html.Password( "Password" ) %>
|
||||||
<%= Html.ValidationMessage("Password", "*") %><br/>
|
<%= Html.ValidationMessage("Password", "*") %><br/>
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
<div><h2>Message </h2> <%= Html.Encode(Model.Message) %></div>
|
<div><h2>Message </h2> <%= Html.Encode(Model.Message) %></div>
|
||||||
<div><h2>Exit Code</h2> <%= Html.Encode(Model.ExitCode) %></div>
|
<div><h2>Exit Code</h2> <%= Html.Encode(Model.ExitCode) %></div>
|
||||||
<form><fieldset><legend>Acces à la base de donnée</legend>
|
<form><fieldset><legend>Acces à la base de donnée</legend>
|
||||||
<label>db Name:</label><%= Html.Encode(Model.Dbname) %><br/>
|
<label>db Name:</label><%= Html.Encode(ViewData["DbName"]) %><br/>
|
||||||
<label>db User:</label><%= Html.Encode(Model.Dbuser) %><br/>
|
<label>db User:</label><%= Html.Encode(ViewData["DbUser"]) %><br/>
|
||||||
<Label>Pass:</label><%= Html.Encode(Model.Password[0]) %> ... You should already know it.<br/>
|
<label>Hôte:</label><%= Html.Encode(ViewData["Host"]) %></fieldset>
|
||||||
<label>Hôte:</label><%= Html.Encode(Model.Host) %>:<%= Model.Port %></filedset>
|
</form>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
<%= Html.LabelFor(model => model.Port) %>:
|
<%= Html.LabelFor(model => model.Port) %>:
|
||||||
<%= Html.TextBox( "Port" ) %>
|
<%= Html.TextBox( "Port" ) %>
|
||||||
<%= Html.ValidationMessage("Port", "*") %><br/>
|
<%= Html.ValidationMessage("Port", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Dbname) %>:
|
<%= Html.LabelFor(model => model.DbName) %>:
|
||||||
<%= Html.TextBox( "Dbname" ) %>
|
<%= Html.TextBox( "DbName" ) %>
|
||||||
<%= Html.ValidationMessage("Dbname", "*") %><br/>
|
<%= Html.ValidationMessage("DbName", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Dbuser) %>:
|
<%= Html.LabelFor(model => model.DbUser) %>:
|
||||||
<%= Html.TextBox( "Dbuser" ) %>
|
<%= Html.TextBox( "DbUser" ) %>
|
||||||
<%= Html.ValidationMessage("Dbuser", "*") %><br/>
|
<%= Html.ValidationMessage("DbUser", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Password) %>:
|
<%= Html.LabelFor(model => model.Password) %>:
|
||||||
<%= Html.Password( "Password" ) %>
|
<%= Html.Password( "Password" ) %>
|
||||||
<%= Html.ValidationMessage("Password", "*") %><br/>
|
<%= Html.ValidationMessage("Password", "*") %><br/>
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,12 @@
|
||||||
<%= Html.LabelFor(model => model.Port) %>:
|
<%= Html.LabelFor(model => model.Port) %>:
|
||||||
<%= Html.TextBox( "Port" ) %>
|
<%= Html.TextBox( "Port" ) %>
|
||||||
<%= Html.ValidationMessage("Port", "*") %><br/>
|
<%= Html.ValidationMessage("Port", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Dbname) %>:
|
<%= Html.LabelFor(model => model.DbName) %>:
|
||||||
<%= Html.TextBox( "Dbname" ) %>
|
<%= Html.TextBox( "DbName" ) %>
|
||||||
<%= Html.ValidationMessage("Dbname", "*") %><br/>
|
<%= Html.ValidationMessage("DbName", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Dbuser) %>:
|
<%= Html.LabelFor(model => model.DbUser) %>:
|
||||||
<%= Html.TextBox( "Dbuser" ) %>
|
<%= Html.TextBox( "DbUser" ) %>
|
||||||
<%= Html.ValidationMessage("Dbuser", "*") %><br/>
|
<%= Html.ValidationMessage("DbUser", "*") %><br/>
|
||||||
<%= Html.LabelFor(model => model.Password) %>:
|
<%= Html.LabelFor(model => model.Password) %>:
|
||||||
<%= Html.Password( "Password" ) %>
|
<%= Html.Password( "Password" ) %>
|
||||||
<%= Html.ValidationMessage("Password", "*") %><br/>
|
<%= Html.ValidationMessage("Password", "*") %><br/>
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ namespace Yavsc.Model.Admin
|
||||||
/// Gets or sets the dbname.
|
/// Gets or sets the dbname.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The dbname.</value>
|
/// <value>The dbname.</value>
|
||||||
public string Dbname {
|
public string DbName {
|
||||||
get {
|
get {
|
||||||
return dbname;
|
return dbname;
|
||||||
}
|
}
|
||||||
|
|
@ -62,7 +62,7 @@ namespace Yavsc.Model.Admin
|
||||||
/// Gets or sets the dbuser.
|
/// Gets or sets the dbuser.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The dbuser.</value>
|
/// <value>The dbuser.</value>
|
||||||
public string Dbuser {
|
public string DbUser {
|
||||||
get {
|
get {
|
||||||
return dbuser;
|
return dbuser;
|
||||||
}
|
}
|
||||||
|
|
@ -101,7 +101,7 @@ namespace Yavsc.Model.Admin
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The string.</returns>
|
/// <returns>The string.</returns>
|
||||||
public string ConnectionString { get { return string.Format ("Server={0};Port={1};Database={2};User Id={3};Password={4};Encoding=Unicode;",
|
public string ConnectionString { get { return string.Format ("Server={0};Port={1};Database={2};User Id={3};Password={4};Encoding=Unicode;",
|
||||||
Host, Port, Dbname, Dbuser, Password); } }
|
Host, Port, DbName, DbUser, Password); } }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace Yavsc.Admin
|
namespace Yavsc.Model.Admin
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue