// ==================================================================== // private 関数 // ==================================================================== // -------------------------------------------------------------------- // カテゴリーテーブルのレコードを作成 // -------------------------------------------------------------------- private static TCategory CreateCategoryRecord(Int32 idNumber, String name, String?ruby = null) { String?normalizedName = YlCommon.NormalizeDbString(name); (String? normalizedRubyForMusicInfo, _, _) = YlCommon.NormalizeDbRubyForMusicInfo(ruby); if (String.IsNullOrEmpty(normalizedRubyForMusicInfo)) { normalizedRubyForMusicInfo = normalizedName; } (String? normalizedRubyForSearch, _, _) = YlCommon.NormalizeDbRubyForSearch(normalizedRubyForMusicInfo); return(new TCategory() { // IRcBase Id = YlConstants.MUSIC_INFO_SYSTEM_ID_PREFIX + YlConstants.MUSIC_INFO_ID_SECOND_PREFIXES[(Int32)MusicInfoTables.TCategory] + idNumber.ToString("D3"), Import = false, Invalid = false, UpdateTime = YlConstants.INVALID_MJD, Dirty = true, // IRcMaster Name = normalizedName, Ruby = normalizedRubyForMusicInfo, RubyForSearch = normalizedRubyForSearch, Keyword = null, KeywordRubyForSearch = null, }); }