using Avalonia.Media.Imaging; using System; using System.Collections.Generic; namespace Agents.Models; public partial class Agent { public int Id { get; set; } public string Title { get; set; } = null!; public int Agenttypeid { get; set; } public string? Address { get; set; } public string Inn { get; set; } = null!; public string? Kpp { get; set; } public string? Directorname { get; set; } public string Phone { get; set; } = null!; public string? Email { get; set; } public string? Logo { get; set; } public Bitmap getLogo { get { try { return new Bitmap(AppDomain.CurrentDomain.BaseDirectory + "Assets/" + Logo); } catch (Exception ex) { return new Bitmap(AppDomain.CurrentDomain.BaseDirectory + "Assets/agents/picture.png"); } } } public int Priority { get; set; } public virtual ICollection Agentpriorityhistories { get; set; } = new List(); public virtual Agenttype Agenttype { get; set; } = null!; public virtual ICollection Productsales { get; set; } = new List(); public virtual ICollection Shops { get; set; } = new List(); }