GIT: perform LF normalization

This commit is contained in:
Gary Sharp
2013-02-28 17:15:46 +11:00
parent 989f08a24d
commit 7d9be5620d
729 changed files with 300734 additions and 300712 deletions
@@ -1,37 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceAttachment
{
[Key]
public int Id { get; set; }
public string DeviceSerialNumber { get; set; }
[Required]
public string TechUserId { get; set; }
[StringLength(500), Required]
public string Filename { get; set; }
[Required, StringLength(500)]
public string MimeType { get; set; }
public DateTime Timestamp { get; set; }
[Required, StringLength(500)]
public string Comments { get; set; }
public string DocumentTemplateId { get; set; }
[InverseProperty("DeviceAttachments"), ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
[ForeignKey("TechUserId")]
public virtual User TechUser { get; set; }
[ForeignKey("DocumentTemplateId")]
public virtual DocumentTemplate DocumentTemplate { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceAttachment
{
[Key]
public int Id { get; set; }
public string DeviceSerialNumber { get; set; }
[Required]
public string TechUserId { get; set; }
[StringLength(500), Required]
public string Filename { get; set; }
[Required, StringLength(500)]
public string MimeType { get; set; }
public DateTime Timestamp { get; set; }
[Required, StringLength(500)]
public string Comments { get; set; }
public string DocumentTemplateId { get; set; }
[InverseProperty("DeviceAttachments"), ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
[ForeignKey("TechUserId")]
public virtual User TechUser { get; set; }
[ForeignKey("DocumentTemplateId")]
public virtual DocumentTemplate DocumentTemplate { get; set; }
}
}
+61 -61
View File
@@ -1,61 +1,61 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceBatch
{
[Key]
public int Id { get; set; }
[StringLength(500)]
public string Name { get; set; }
[Required, DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime PurchaseDate { get; set; }
[StringLength(200)]
public string Supplier { get; set; }
[DataType(DataType.MultilineText), StringLength(500)]
public string PurchaseDetails { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:c}")]
public decimal? UnitCost { get; set; }
public int? UnitQuantity { get; set; }
public int? DefaultDeviceModelId { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? WarrantyValidUntil { get; set; }
[DataType(DataType.MultilineText)]
public string WarrantyDetails { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? InsuredDate { get; set; }
[StringLength(200)]
public string InsuranceSupplier { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? InsuredUntil { get; set; }
[DataType(DataType.MultilineText)]
public string InsuranceDetails { get; set; }
[DataType(DataType.MultilineText)]
public string Comments { get; set; }
[ForeignKey("DefaultDeviceModelId")]
public virtual DeviceModel DefaultDeviceModel { get; set; }
public virtual IList<Device> Devices { get; set; }
public override string ToString()
{
if (string.IsNullOrWhiteSpace(this.Name))
{
return string.Format("{0}: {1}", this.Id, this.PurchaseDate.ToLongDateString());
}
return this.Name;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceBatch
{
[Key]
public int Id { get; set; }
[StringLength(500)]
public string Name { get; set; }
[Required, DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime PurchaseDate { get; set; }
[StringLength(200)]
public string Supplier { get; set; }
[DataType(DataType.MultilineText), StringLength(500)]
public string PurchaseDetails { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:c}")]
public decimal? UnitCost { get; set; }
public int? UnitQuantity { get; set; }
public int? DefaultDeviceModelId { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? WarrantyValidUntil { get; set; }
[DataType(DataType.MultilineText)]
public string WarrantyDetails { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? InsuredDate { get; set; }
[StringLength(200)]
public string InsuranceSupplier { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? InsuredUntil { get; set; }
[DataType(DataType.MultilineText)]
public string InsuranceDetails { get; set; }
[DataType(DataType.MultilineText)]
public string Comments { get; set; }
[ForeignKey("DefaultDeviceModelId")]
public virtual DeviceModel DefaultDeviceModel { get; set; }
public virtual IList<Device> Devices { get; set; }
public override string ToString()
{
if (string.IsNullOrWhiteSpace(this.Name))
{
return string.Format("{0}: {1}", this.Id, this.PurchaseDate.ToLongDateString());
}
return this.Name;
}
}
}
@@ -1,35 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceCertificate
{
[Key]
public int Id { get; set; }
[Required, StringLength(64)]
public string ProviderId { get; set; }
public int ProviderIndex { get; set; }
[StringLength(28)]
public string Name { get; set; }
[MaxLength(16384)]
public byte[] Content { get; set; }
public bool Enabled { get; set; }
// Added 2011-10-24 G#
public DateTime? ExpirationDate { get; set; }
// Added 2011-10-24 G#
public DateTime? AllocatedDate { get; set; }
public string DeviceSerialNumber { get; set; }
[ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceCertificate
{
[Key]
public int Id { get; set; }
[Required, StringLength(64)]
public string ProviderId { get; set; }
public int ProviderIndex { get; set; }
[StringLength(28)]
public string Name { get; set; }
[MaxLength(16384)]
public byte[] Content { get; set; }
public bool Enabled { get; set; }
// Added 2011-10-24 G#
public DateTime? ExpirationDate { get; set; }
// Added 2011-10-24 G#
public DateTime? AllocatedDate { get; set; }
public string DeviceSerialNumber { get; set; }
[ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
}
}
@@ -1,24 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceComponent
{
[Key]
public int Id { get; set; }
public int? DeviceModelId { get; set; }
[StringLength(100)]
public string Description { get; set; }
public decimal Cost { get; set; }
[ForeignKey("DeviceModelId")]
public virtual DeviceModel DeviceModel { get; set; }
public virtual IList<JobSubType> JobSubTypes { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceComponent
{
[Key]
public int Id { get; set; }
public int? DeviceModelId { get; set; }
[StringLength(100)]
public string Description { get; set; }
public decimal Cost { get; set; }
[ForeignKey("DeviceModelId")]
public virtual DeviceModel DeviceModel { get; set; }
public virtual IList<JobSubType> JobSubTypes { get; set; }
}
}
+26 -26
View File
@@ -1,26 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceDetail
{
[Column(Order = 0), Key]
public string DeviceSerialNumber { get; set; }
[Key, StringLength(100), Column(Order = 2)]
public string Key { get; set; }
[Column(Order = 1), StringLength(100), Key]
public string Scope { get; set; }
public string Value { get; set; }
[ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceDetail
{
[Column(Order = 0), Key]
public string DeviceSerialNumber { get; set; }
[Key, StringLength(100), Column(Order = 2)]
public string Key { get; set; }
[Column(Order = 1), StringLength(100), Key]
public string Scope { get; set; }
public string Value { get; set; }
[ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
}
}
+49 -49
View File
@@ -1,49 +1,49 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Disco.Models.Repository
{
public class DeviceModel
{
[Key]
public int Id { get; set; }
[StringLength(500)]
public string Description { get; set; }
[StringLength(200)]
public string Manufacturer { get; set; }
[StringLength(200)]
public string Model { get; set; }
[StringLength(40)]
public string ModelType { get; set; }
// Remove Reliance On!
// Removed: 2013-01-14 G#
//[Obsolete("Image to be removed from the Database")]
//public byte[] Image { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? DefaultPurchaseDate { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:c}")]
public decimal? DeviceCost { get; set; }
[StringLength(40)]
public string DefaultWarrantyProvider { get; set; }
public virtual IList<DeviceComponent> DeviceComponents { get; set; }
public virtual IList<Device> Devices { get; set; }
public override string ToString()
{
if (string.IsNullOrWhiteSpace(this.Description))
{
return string.Format("{0} {1}", this.Manufacturer, this.Model);
}
return this.Description;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Disco.Models.Repository
{
public class DeviceModel
{
[Key]
public int Id { get; set; }
[StringLength(500)]
public string Description { get; set; }
[StringLength(200)]
public string Manufacturer { get; set; }
[StringLength(200)]
public string Model { get; set; }
[StringLength(40)]
public string ModelType { get; set; }
// Remove Reliance On!
// Removed: 2013-01-14 G#
//[Obsolete("Image to be removed from the Database")]
//public byte[] Image { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
public DateTime? DefaultPurchaseDate { get; set; }
[DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:c}")]
public decimal? DeviceCost { get; set; }
[StringLength(40)]
public string DefaultWarrantyProvider { get; set; }
public virtual IList<DeviceComponent> DeviceComponents { get; set; }
public virtual IList<Device> Devices { get; set; }
public override string ToString()
{
if (string.IsNullOrWhiteSpace(this.Description))
{
return string.Format("{0} {1}", this.Manufacturer, this.Model);
}
return this.Description;
}
}
}
+83 -83
View File
@@ -1,83 +1,83 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;
using System.Linq.Expressions;
namespace Disco.Models.Repository
{
public partial class DeviceProfile
{
[Key]
public int Id { get; set; }
[Required, StringLength(100)]
public string Name { get; set; }
[Required, StringLength(10)]
public string ShortName { get; set; }
[StringLength(500)]
public string Description { get; set; }
public int? DefaultOrganisationAddress { get; set; }
// Migration from DeviceProfile Configuration
// 2012-06-14 G#
[Required()]
public string ComputerNameTemplate { get; set; }
public enum DistributionTypes : int
{
OneToMany = 0,
OneToOne = 1
}
[Column("DistributionType"), EditorBrowsable(EditorBrowsableState.Never)]
public int DistributionTypeDb { get; set; }
[NotMapped]
public DistributionTypes DistributionType
{
get
{
return (DistributionTypes)this.DistributionTypeDb;
}
set
{
this.DistributionTypeDb = (int)value;
}
}
public string OrganisationalUnit { get; set; }
// End Migration
// 2012-06-14 G#
public bool EnforceComputerNameConvention { get; set; }
public bool EnforceOrganisationalUnit { get; set; }
// 2012-06-28 G#
public bool ProvisionADAccount { get; set; }
public virtual IList<Device> Devices { get; set; }
public override string ToString()
{
if (string.IsNullOrEmpty(this.ShortName))
{
return this.Name;
}
return string.Format("{0} ({1})", this.Name, this.ShortName);
}
// 2012-06-21
// public bool AllocateCertificate { get; set; } // Renamed from 'AllocateWirelessCertificate'
[StringLength(64)]
public string CertificateProviderId { get; set; }
}
public partial class DeviceProfile
{
public class PropertyAccessExpressions {
public static readonly Expression<Func<DeviceProfile, int>> DistributionTypeDb = x => x.DistributionTypeDb;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;
using System.Linq.Expressions;
namespace Disco.Models.Repository
{
public partial class DeviceProfile
{
[Key]
public int Id { get; set; }
[Required, StringLength(100)]
public string Name { get; set; }
[Required, StringLength(10)]
public string ShortName { get; set; }
[StringLength(500)]
public string Description { get; set; }
public int? DefaultOrganisationAddress { get; set; }
// Migration from DeviceProfile Configuration
// 2012-06-14 G#
[Required()]
public string ComputerNameTemplate { get; set; }
public enum DistributionTypes : int
{
OneToMany = 0,
OneToOne = 1
}
[Column("DistributionType"), EditorBrowsable(EditorBrowsableState.Never)]
public int DistributionTypeDb { get; set; }
[NotMapped]
public DistributionTypes DistributionType
{
get
{
return (DistributionTypes)this.DistributionTypeDb;
}
set
{
this.DistributionTypeDb = (int)value;
}
}
public string OrganisationalUnit { get; set; }
// End Migration
// 2012-06-14 G#
public bool EnforceComputerNameConvention { get; set; }
public bool EnforceOrganisationalUnit { get; set; }
// 2012-06-28 G#
public bool ProvisionADAccount { get; set; }
public virtual IList<Device> Devices { get; set; }
public override string ToString()
{
if (string.IsNullOrEmpty(this.ShortName))
{
return this.Name;
}
return string.Format("{0} ({1})", this.Name, this.ShortName);
}
// 2012-06-21
// public bool AllocateCertificate { get; set; } // Renamed from 'AllocateWirelessCertificate'
[StringLength(64)]
public string CertificateProviderId { get; set; }
}
public partial class DeviceProfile
{
public class PropertyAccessExpressions {
public static readonly Expression<Func<DeviceProfile, int>> DistributionTypeDb = x => x.DistributionTypeDb;
}
}
}
@@ -1,26 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceUserAssignment
{
[Key, Column(Order = 0)]
public string DeviceSerialNumber { get; set; }
public string AssignedUserId { get; set; }
[Column(Order = 1), Key]
public DateTime AssignedDate { get; set; }
public DateTime? UnassignedDate { get; set; }
[ForeignKey("AssignedUserId")]
public virtual User AssignedUser { get; set; }
[ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Disco.Models.Repository
{
public class DeviceUserAssignment
{
[Key, Column(Order = 0)]
public string DeviceSerialNumber { get; set; }
public string AssignedUserId { get; set; }
[Column(Order = 1), Key]
public DateTime AssignedDate { get; set; }
public DateTime? UnassignedDate { get; set; }
[ForeignKey("AssignedUserId")]
public virtual User AssignedUser { get; set; }
[ForeignKey("DeviceSerialNumber")]
public virtual Device Device { get; set; }
}
}