/// <summary>
        /// Inserts data for table "uLocate_LocationType"
        /// </summary>
        private void CreateLocationTypeData()
        {
            LogHelper.Info<DatabaseDefaultDataInsert>(string.Format("CreateLocationTypeData() running..."));

            string TableName = "uLocate_LocationType";
            string PrimaryKeyFieldName = "Key";

            LogHelper.Info<DatabaseDefaultDataInsert>(string.Format("Adding data for table '{0}'...", TableName));

            LocationTypeDto newLocType = new LocationTypeDto() { Name = "Default", Key = Constants.DefaultLocationTypeKey, Icon = Constants.BaseLocationTypeIcon };

            _database.Insert(newLocType);
        }
Exemplo n.º 2
0
        public LocationTypeDto ToLocationTypeDto(LocationType entity)
        {
            var dto = new LocationTypeDto()
            {
                Key         = entity.Key,
                Name        = entity.Name,
                Description = entity.Description,
                Icon        = entity.Icon,
                UpdateDate  = entity.UpdateDate,
                CreateDate  = entity.CreateDate
            };

            return(dto);
        }
Exemplo n.º 3
0
        public LocationType ToLocationTypeEntity(LocationTypeDto dto)
        {
            var Entity = new LocationType()
            {
                Key         = dto.Key,
                Name        = dto.Name,
                Description = dto.Description,
                Icon        = dto.Icon,
                UpdateDate  = dto.UpdateDate,
                CreateDate  = dto.CreateDate
            };

            return(Entity);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Inserts data for table "uLocate_LocationType"
        /// </summary>
        private void CreateLocationTypeData()
        {
            LogHelper.Info <DatabaseDefaultDataInsert>(string.Format("CreateLocationTypeData() running..."));

            string TableName           = "uLocate_LocationType";
            string PrimaryKeyFieldName = "Key";

            LogHelper.Info <DatabaseDefaultDataInsert>(string.Format("Adding data for table '{0}'...", TableName));

            LocationTypeDto newLocType = new LocationTypeDto()
            {
                Name = "Default", Key = Constants.DefaultLocationTypeKey, Icon = Constants.BaseLocationTypeIcon
            };

            _database.Insert(newLocType);
        }
Exemplo n.º 5
0
        public LocationType ToLocationTypeEntity(LocationTypeDto dto)
        {
            var Entity = new LocationType()
            {
                Key = dto.Key,
                Name = dto.Name,
                Description = dto.Description,
                Icon = dto.Icon,
                UpdateDate = dto.UpdateDate,
                CreateDate = dto.CreateDate
            };

            return Entity;
        }
Exemplo n.º 6
0
        public LocationTypeDto ToLocationTypeDto(LocationType entity)
        {
            var dto = new LocationTypeDto()
            {
                Key = entity.Key,
                Name = entity.Name,
                Description = entity.Description,
                Icon = entity.Icon,
                UpdateDate = entity.UpdateDate,
                CreateDate = entity.CreateDate
            };

            return dto;
        }