Esempio n. 1
0
        private static void ReadById(string entityName)
        {
            Guid guidParseResult = TryParseProperty.TryParseGuidProperty(Localize.PropertyId, entityName);

            Console.WriteLine(Localize.Reading + "...");
            try
            {
                CRUDOperations.ReadEntity(String.Empty, guidParseResult, true);
                Console.WriteLine(String.Format(Localize.Done, entityName, Localize.Read));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Esempio n. 2
0
        private static void Read(string entityName)
        {
            string nameParseResult = TryParseProperty.TryParseStringProperty(Localize.PropertyName, entityName);

            Console.WriteLine(Localize.Reading + "...");
            try
            {
                CRUDOperations.ReadEntity(nameParseResult, Guid.Empty, false);
                Console.WriteLine(String.Format(Localize.Done, entityName, Localize.Read));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }