コード例 #1
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);
        }
コード例 #2
0
ファイル: DtoConverter.cs プロジェクト: rbproworks/uLocate
        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);
        }
コード例 #3
0
ファイル: DtoConverter.cs プロジェクト: rbproworks/uLocate
        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);
        }
コード例 #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);
        }
コード例 #5
0
ファイル: DtoConverter.cs プロジェクト: ismailmayat/uLocate
        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;
        }
コード例 #6
0
ファイル: DtoConverter.cs プロジェクト: ismailmayat/uLocate
        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;
        }