/// /// Adds a new {entityTypeName} and returns a projection of type {returnTypeFullName}. /// /// The database context. /// Projection data of {entityTypeName} /// The added data. public static (bool, {returnTypeFullName}) Add{entityTypeName}(this {contextFullName} dbContext, {createTypeFullName} {toCreateVarName}) { var {newEntityVarName} = new {entityTypeFullName}({toCreateVarName}); dbContext.{propertyName}.Add({newEntityVarName}); var success = dbContext.SaveChanges() >= 0; return (success, new {returnTypeFullName}({newEntityVarName})); }