Exemple #1
0
        public static void WriteDefinition <T>(T item)
        {
            DataDefinition def = DataDefinition.FromType(typeof(T));

            Console.WriteLine("Tablename:\r\n" + def.TableName);
            Console.WriteLine("Typename:\r\n" + def.Type.Name);
            Console.WriteLine("Params:\r\n" + string.Join(Environment.NewLine + "", def.GenerateParameters(item).Select(P => $"{P.ParameterName,15} : {P.Value}")));
        }