コード例 #1
0
ファイル: Repository.cs プロジェクト: JJSSingh/SIBA_WEB
        public PlatilloEntity createPlatillo(Platillo pl)
        {
            PlatilloEntity pe = AParser.ToPlatilloEntity(pl);

            String value = Astorage.InsertOrUpdate("FoodTable", pe).Result;

            return(pe);
        }
コード例 #2
0
ファイル: AzureParser.cs プロジェクト: JJSSingh/SIBA_WEB
        public PlatilloEntity ToPlatilloEntity(Platillo pl)
        {
            PlatilloEntity ep = new PlatilloEntity();

            ep.PartitionKey = pl.Name;
            ep.RowKey       = "01";
            ep.Description  = pl.Description;
            ep.Price        = pl.Price;
            return(ep);
        }
コード例 #3
0
ファイル: AzureParser.cs プロジェクト: JJSSingh/SIBA_WEB
        public Platillo ToPlatillo(PlatilloEntity ep)
        {
            Platillo pl = new Platillo();

            if (!(ep == null))
            {
                pl.Name        = ep.PartitionKey;
                pl.Description = ep.Description;
                pl.Price       = ep.Price;
            }
            return(pl);
        }