Small fixes for web deploy
This commit is contained in:
@@ -35,7 +35,8 @@ namespace MileageTraker.Web.Utility
|
||||
// write column headers
|
||||
var properties =
|
||||
typeof(T).GetProperties()
|
||||
.Where(p => !p.PropertyType.IsCollection());
|
||||
.Where(p => !p.PropertyType.IsCollection())
|
||||
.ToList();
|
||||
|
||||
properties.Zip(
|
||||
CustomExtensions.GetNumbers(),
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace MileageTraker.Web.Utility
|
||||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||
public class FormatHintAttribute : Attribute
|
||||
{
|
||||
public string Text { get; set; }
|
||||
public string Text { get; private set; }
|
||||
|
||||
public FormatHintAttribute(string text)
|
||||
{
|
||||
@@ -15,7 +15,7 @@ namespace MileageTraker.Web.Utility
|
||||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||
public class UnitsAttribute : Attribute
|
||||
{
|
||||
public string Text { get; set; }
|
||||
public string Text { get; private set; }
|
||||
|
||||
public UnitsAttribute(string text)
|
||||
{
|
||||
@@ -27,22 +27,4 @@ namespace MileageTraker.Web.Utility
|
||||
public class NoEditLabelAttribute : Attribute
|
||||
{
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||
public sealed class RenderModeAttribute : Attribute
|
||||
{
|
||||
public RenderMode RenderMode { get; set; }
|
||||
|
||||
public RenderModeAttribute(RenderMode renderMode)
|
||||
{
|
||||
RenderMode = renderMode;
|
||||
}
|
||||
}
|
||||
|
||||
public enum RenderMode
|
||||
{
|
||||
Any,
|
||||
EditModeOnly,
|
||||
DisplayModeOnly
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user