using DotVVM.BusinessPack.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace ElectroShop.DAL.Entities
{
    public class ElectronicComponent
    {
        public int Id { get; set; }

        public string Name { get; set; }


        public string ParametersValues { get; set; }

        /// <summary>
        /// Pocet dostupnych soucastek ve skladu
        /// </summary>
        public int NumberAvailable { get; set; }

        /// <summary>
        /// Url obrazku. Problem s DotVVM frameworkem.
        /// </summary>
        public string ImgBase64 { get; set; }

        /// <summary>
        ///  Id obrazku pro jeho ulozeni.
        /// </summary>
        public Guid ImgId { get; set; }

        /// <summary>
        /// Id  datasheetu pro jeho ulozeni.
        /// </summary>
        public Guid DatasheetId { get; set; }



        //Cizi klic pro ElectronicComponentCategory
        public int ElectronicComponentCategoryId { get; set; }
        public ElectronicComponentCathegory ElectronicComponentCategory { get; set; }
    }
}
