Files
marechai/Marechai.Database/Models/LanguageBySoftwareRelease.cs
Natalia Portillo 1a83f781cd Add language support to software releases
- Created a new junction table `LanguageBySoftwareRelease` to associate languages with software releases.
- Updated the `SoftwareRelease` model to include a collection of languages.
- Implemented migration to create the new table and update the database schema.
- Added `LanguagesController` for managing language retrieval and details.
- Enhanced `SoftwareReleasesController` to include language information in software release responses.
- Developed UI components in Blazor for adding and displaying languages associated with software releases.
- Updated service layer to handle language operations for software releases.
- Added localization for language-related UI elements.
2026-04-26 18:29:51 +01:00

39 lines
1.6 KiB
C#

/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2026 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations;
namespace Marechai.Database.Models;
public class LanguageBySoftwareRelease
{
public ulong SoftwareReleaseId { get; set; }
public virtual SoftwareRelease SoftwareRelease { get; set; }
[StringLength(3)]
public string LanguageCode { get; set; }
public virtual Iso639 Language { get; set; }
}