123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace GDNXFD.Data
- {
- [Table("EQUIPMENTMODEL")]
- public class EquipmentModel : INotifyPropertyChanged
- {
- //ID, CODE, NAME, DESCRIPTION, POWERPRODUCTION, CUTINWINDSPEED,
- //RATEDWINDSPEED, CUTOUTWINDSPEED, WINDTURBINEMANUFACTURERID, PHOTO,
- //UNIT, SWEPTAREA, EQUIPMENTCATEGORY
- [Column("ID")]
- public string Id { get; set; }
- [Column("CODE")]
- public string Code { get; set; }
- [Column("NAME")]
- public string Name { get; set; }
- [Column("DESCRIPTION")]
- public string Description { get; set; }
- [Column("POWERPRODUCTION")]
- public decimal? PowerProduction { get; set; }
- [Column("CUTINWINDSPEED")]
- public decimal? CutinWindspeed { get; set; }
- [Column("RATEDWINDSPEED")]
- public decimal? RatedWindspeed { get; set; }
- [Column("SWEPTAREA")]
- public decimal? SweptArea { get; set; }
- [Column("CUTOUTWINDSPEED")]
- public string CutoutWindspeed { get; set; }
- [Column("WINDTURBINEMANUFACTURERID")]
- public string WindTurbineManufacturerId { get; set; }
- [Column("PHOTO")]
- public string Photo { get; set; }
- [Column("UNIT")]
- public string Unit { get; set; }
- [Column("EQUIPMENTCATEGORY")]
- public string EquipmentCategory { get; set; }
- /// <summary>
- /// Property changed event
- /// </summary>
- public event PropertyChangedEventHandler PropertyChanged;
- private void RaisePropertyChanged([CallerMemberName] string caller = "")
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(caller));
- }
- }
- }
- }
|