Is this json.net? If so, qualify the namespace.
--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
using System; namespace ConsoleApplication1 { using System.ComponentModel; using Raven.Client.Document; using Raven.Client.Extensions; class Program { static void Main(string[] args) { var test = new Test { Name = "Hello World" }; using (var documentStore = new DocumentStore { Url = "http://localhost:8080" }.Initialize()) { documentStore.DatabaseCommands.EnsureDatabaseExists("MyDatabase"); using (var session = documentStore.OpenSession("MyDatabase")) { session.Store(test); session.SaveChanges(); } } } } [TypeConverter(typeof(ExpandableObjectConverter))] public class Test { /// <summary>Gets or sets the Name.</summary> public string Name { get; set; } /// <summary>The to string.</summary> /// <returns>The <see cref="string"/>Name.</returns> public override string ToString() { return this.Name; } } }
Why do you want to do this? What behavior are you trying to achieve?
--
Oh. This has something to do with wpf. Ok. I had no idea.