How to document the classes & properties & functions that are generated automatically using LINQ to SQL DBML?
I managed to provide documentation to the datacontext class by defining the same partial class in another file with <summary>
so it won't be removed if the DBML got refreshed
/// <summary>
/// Linq to SQL datacontext
/// </summary>
public partial class LinqDBDataContext {
}
This would work for table mapping class with one downside is having to manually maintain the separate class for added/removed tables.
another thing..I have comments-like-documentation(author, date and description) in the stored procedure, shouldn't be also extracted into the code file as the function's documentation?
-- =============================================
-- Author: <Katia Aleid>
-- Create date: <2015-04-01>
-- Description: <Performs search for the users>
-- =============================================
ALTER PROCEDURE [dbo].[SearchUsers] ....
is it acceptable to exclude the DBML form C# documentation and have separate database documentation instead?