Skip to content

Commit 8975fc9

Browse files
committed
- fixed wrong index on db
- added dictionary item in menù such fixes may need manual patch on database for already installed versions
1 parent 9bd6d03 commit 8975fc9

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

UpgradeLog.htm

33.5 KB
Binary file not shown.

Wlog.Library/DAL/Nhibernate/Mappings/DictionaryMap.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ public DictionaryMap()
2626

2727
Id(x => x.Id, map => { map.Column("DictionaryId"); map.Generator(Generators.Guid); });
2828

29-
Property(x => x.ApplicationId);
30-
Property(x => x.Name,m=> { m.Index("idx_name");m.Unique(true); });
29+
Property(x => x.ApplicationId, m => { m.UniqueKey("idx_name_app"); });
30+
31+
Property(x => x.Name,m=> { m.UniqueKey("idx_name_app"); });
3132
}
3233
}
3334
}

Wlog.Web/Global.asax.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected void Application_Start(object sender, EventArgs e)
5151

5252

5353

54-
if (installed)
54+
if (installed)
5555
{
5656
_logger.Info("Setup index configuration");
5757
IndexRepository.BasePath = HttpContext.Current.Server.MapPath("~/App_Data/Index/");

Wlog.Web/Views/Shared/_LayoutInternal.cshtml

+18
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,24 @@
125125
</ul>
126126
<!-- /.nav-second-level -->
127127
</li>
128+
129+
<li>
130+
<a href="/private/dictionary"><i class="fa fa-list-alt fa-fw"></i>Dictionaries<span class="fa arrow"></span></a>
131+
<ul class="nav nav-second-level">
132+
133+
@if (Membership.GetUser() != null)
134+
{
135+
foreach (var app in RepositoryContext.Current.Applications.GetAppplicationsByUsername(Membership.GetUser().UserName))
136+
{
137+
<li>
138+
<a href="/private/[email protected]">@app.ApplicationName </a>
139+
</li>
140+
}
141+
}
142+
</ul>
143+
<!-- /.nav-second-level -->
144+
</li>
145+
128146
@if (UserProfileContext.Current.IsEditorUser)
129147
{
130148
<li>

0 commit comments

Comments
 (0)