-
Notifications
You must be signed in to change notification settings - Fork 226
UsePropertiesForStoredProcResultSets
Simon Hughes edited this page Nov 29, 2023
·
1 revision
public class StpMultipleResultsWithParamsReturnModel
{
public class ResultSetModel1
{
public int codeObjectNo { get; set; }
public int? applicationNo { get; set; }
}
public List<ResultSetModel1> ResultSet1; // <--- Note that this is a field
public class ResultSetModel2
{
public int Id { get; set; }
public string Name { get; set; }
}
public List<ResultSetModel2> ResultSet2; // <--- Note that this is a field
}public class StpMultipleResultsWithParamsReturnModel
{
public class ResultSetModel1
{
public int codeObjectNo { get; set; }
public int? applicationNo { get; set; }
}
public List<ResultSetModel1> ResultSet1 { get; set; } // <--- Note that this is a property
public class ResultSetModel2
{
public int Id { get; set; }
public string Name { get; set; }
}
public List<ResultSetModel2> ResultSet2 { get; set; } // <--- Note that this is a property
}- Home
- Compared with the Microsoft scaffolder
- Connection strings
- JetBrains Rider
- Upgrading from v3 to v4
- Saving .tt does nothing
- Settings A-Z - every setting, with a page each
- Common Settings Types Explained
- Settings Callbacks
- Settings runtime values and helpers
- Filtering
- Full Control Over the Generated Code
- Enum Generation from Table Data
- Owned Entities
- JSON column support
- Global Query Filters
- Extended Property Names Feature
- Partial Properties
- File-Scoped Namespaces
- Data Annotations
- Spatial Types
- HierarchyId
- RowVersion and TimeStamp columns
- Lazy Loading
- Stored proc result sets