public GeneratorOptions <T> Method <TParameter>(Expression <Action <T, TParameter> > method) { domainGenerator.actionConventions.Add( new ActionConvention { Type = typeof(T), Action = t => method.Compile().Invoke((T)t, (TParameter)domainGenerator.OneWithoutRelations(typeof(TParameter))) }); return(this); }