/// <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); }
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); }
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); }
/// <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); }
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; }
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; }