by Mark Shiffer
24. November 2008 21:53
For some reason, probably that I don’t post that often, I have managed to just trudge along this whole time using the default Blog Engine.NET editor to generate posts. It’s fine for simple text posts, but once you get to more complex documents or code snippets it can quickly become a nightmare. Sure you have full control over the HTML, but I don’t want to have to ‘code’ my posts.
This is just a test using Windows Live Writer as my agent for adding blog posts. We’ll see how this works. Here’s a code snippet (I think 1 looks better and is more functional):
Plug-in 1:
1: private void CreateSchedulesDS()
2: {
3: SchedulesDS = new DataSet();
4: DataTable table = new DataTable();
5: table.TableName = "Schedules";
6: table.Columns.Add("Key", typeof(int));
7: table.Columns.Add("DueDate", typeof(DateTime));
8: table.Columns.Add("ApplyDemographicsFlag", typeof(String));
9: table.Columns.Add("IdentifyNonReportersFlag", typeof(String));
10: table.Columns.Add("PaymentDueDate", typeof(DateTime));
11: table.Columns.Add("Amount", typeof(decimal));
12: SchedulesDS.Tables.Add(table);
13: }
Plug-in 2:
1: private void CreateSchedulesDS()
2: {
3: SchedulesDS = new DataSet();
4: DataTable table = new DataTable();
5: table.TableName = "Schedules";
6: table.Columns.Add("Key", typeof(int));
7: table.Columns.Add("DueDate", typeof(DateTime));
8: table.Columns.Add("ApplyDemographicsFlag", typeof(String));
9: table.Columns.Add("IdentifyNonReportersFlag", typeof(String));
10: table.Columns.Add("PaymentDueDate", typeof(DateTime));
11: table.Columns.Add("Amount", typeof(decimal));
12: SchedulesDS.Tables.Add(table);
13: }
b22a0901-54e2-49c0-b923-c4bae8980f0d|0|.0
Tags:
Tools