Hi, I have some problems with Dblinq. I work with
Dblinq-0-20.1 Postgresql-9.1 Windows 7 VS2010 I created a database and generated a DataContext class with Dbmetal; and all goes well. But when i did some modification in database schema: I added some bytea column, and tried to regenerate it with DbMetal i got a DataContext class without any entity class. So, I thought to regenate the DataContext class from an Unix PC. However, when i tried to insert a new address, I got this error: ERREUR: 42501: droit refusé pour la relation address I change the client_encoding , but i got always the same error below, the file generated by DbMetal: // // ____ _ __ __ _ _ // | _ \| |__ | \/ | ___| |_ __ _| | // | | | | '_ \| |\/| |/ _ \ __/ _` | | // | |_| | |_) | | | | __/ || (_| | | // |____/|_.__/|_| |_|\___|\__\__,_|_| // // Auto-generated from charity_work on 2012-06-18 16:58:36Z. // Please visit http://code.google.com/p/dblinq2007/ for more information. // namespace Noussaiba.Model { using System; using System.ComponentModel; using System.Data; #if MONO_STRICT using System.Data.Linq; #else // MONO_STRICT using DbLinq.Data.Linq; using DbLinq.Vendor; #endif // MONO_STRICT using System.Data.Linq.Mapping; using System.Diagnostics; public partial class CharityWork : DataContext { #region Extensibility Method Declarations partial void OnCreated(); #endregion public CharityWork(string connectionString) : base(connectionString) { this.OnCreated(); } public CharityWork(string connection, MappingSource mappingSource) : base(connection, mappingSource) { this.OnCreated(); } public CharityWork(IDbConnection connection, MappingSource mappingSource) : base(connection, mappingSource) { this.OnCreated(); } } #region Start MONO_STRICT #if MONO_STRICT public partial class CharityWork { public CharityWork(IDbConnection connection) : base(connection) { this.OnCreated(); } } #region End MONO_STRICT #endregion #else // MONO_STRICT public partial class CharityWork { public CharityWork(IDbConnection connection) : base(connection, new DbLinq.PostgreSql.PgsqlVendor()) { this.OnCreated(); } public CharityWork(IDbConnection connection, IVendor sqlDialect) : base(connection, sqlDialect) { this.OnCreated(); } public CharityWork(IDbConnection connection, MappingSource mappingSource, IVendor sqlDialect) : base(connection, mappingSource, sqlDialect) { this.OnCreated(); } } #region End Not MONO_STRICT #endregion #endif // MONO_STRICT #endregion } -- You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
