Small fixes for web deploy

This commit is contained in:
2012-12-04 14:04:29 -05:00
parent 820b766ed5
commit 0411e4c814
9 changed files with 65 additions and 27 deletions
+2 -1
View File
@@ -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(),
+2 -20
View File
@@ -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
}
}